Path: blob/master/drivers/media/common/tuners/tda18218.h
15112 views
/*1* NXP TDA18218HN silicon tuner driver2*3* Copyright (C) 2010 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 License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.18*/1920#ifndef TDA18218_H21#define TDA18218_H2223#include "dvb_frontend.h"2425struct tda18218_config {26u8 i2c_address;27u8 i2c_wr_max;28u8 loop_through:1;29};3031#if defined(CONFIG_MEDIA_TUNER_TDA18218) || \32(defined(CONFIG_MEDIA_TUNER_TDA18218_MODULE) && defined(MODULE))33extern struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe,34struct i2c_adapter *i2c, struct tda18218_config *cfg);35#else36static inline struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe,37struct i2c_adapter *i2c, struct tda18218_config *cfg)38{39printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);40return NULL;41}42#endif4344#endif454647