Path: blob/master/drivers/media/common/tuners/tda18212.h
15112 views
/*1* NXP TDA18212HN silicon tuner driver2*3* Copyright (C) 2011 Antti Palosaari <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License along16* with this program; if not, write to the Free Software Foundation, Inc.,17* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.18*/1920#ifndef TDA18212_H21#define TDA18212_H2223#include "dvb_frontend.h"2425struct tda18212_config {26u8 i2c_address;2728u16 if_dvbt_6;29u16 if_dvbt_7;30u16 if_dvbt_8;31u16 if_dvbc;32};3334#if defined(CONFIG_MEDIA_TUNER_TDA18212) || \35(defined(CONFIG_MEDIA_TUNER_TDA18212_MODULE) && defined(MODULE))36extern struct dvb_frontend *tda18212_attach(struct dvb_frontend *fe,37struct i2c_adapter *i2c, struct tda18212_config *cfg);38#else39static inline struct dvb_frontend *tda18212_attach(struct dvb_frontend *fe,40struct i2c_adapter *i2c, struct tda18212_config *cfg)41{42printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);43return NULL;44}45#endif4647#endif484950