1*6fef4fc7SKonstantin Dimitrov /* 2*6fef4fc7SKonstantin Dimitrov Montage Technology TS2020 - Silicon Tuner driver 3*6fef4fc7SKonstantin Dimitrov Copyright (C) 2009-2012 Konstantin Dimitrov <kosio.dimitrov@gmail.com> 4*6fef4fc7SKonstantin Dimitrov 5*6fef4fc7SKonstantin Dimitrov Copyright (C) 2009-2012 TurboSight.com 6*6fef4fc7SKonstantin Dimitrov 7*6fef4fc7SKonstantin Dimitrov This program is free software; you can redistribute it and/or modify 8*6fef4fc7SKonstantin Dimitrov it under the terms of the GNU General Public License as published by 9*6fef4fc7SKonstantin Dimitrov the Free Software Foundation; either version 2 of the License, or 10*6fef4fc7SKonstantin Dimitrov (at your option) any later version. 11*6fef4fc7SKonstantin Dimitrov 12*6fef4fc7SKonstantin Dimitrov This program is distributed in the hope that it will be useful, 13*6fef4fc7SKonstantin Dimitrov but WITHOUT ANY WARRANTY; without even the implied warranty of 14*6fef4fc7SKonstantin Dimitrov MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*6fef4fc7SKonstantin Dimitrov GNU General Public License for more details. 16*6fef4fc7SKonstantin Dimitrov 17*6fef4fc7SKonstantin Dimitrov You should have received a copy of the GNU General Public License 18*6fef4fc7SKonstantin Dimitrov along with this program; if not, write to the Free Software 19*6fef4fc7SKonstantin Dimitrov Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20*6fef4fc7SKonstantin Dimitrov */ 21*6fef4fc7SKonstantin Dimitrov 22*6fef4fc7SKonstantin Dimitrov #ifndef TS2020_H 23*6fef4fc7SKonstantin Dimitrov #define TS2020_H 24*6fef4fc7SKonstantin Dimitrov 25*6fef4fc7SKonstantin Dimitrov #include <linux/dvb/frontend.h> 26*6fef4fc7SKonstantin Dimitrov 27*6fef4fc7SKonstantin Dimitrov struct ts2020_config { 28*6fef4fc7SKonstantin Dimitrov u8 tuner_address; 29*6fef4fc7SKonstantin Dimitrov }; 30*6fef4fc7SKonstantin Dimitrov 31*6fef4fc7SKonstantin Dimitrov #if defined(CONFIG_DVB_TS2020) || \ 32*6fef4fc7SKonstantin Dimitrov (defined(CONFIG_DVB_TS2020_MODULE) && defined(MODULE)) 33*6fef4fc7SKonstantin Dimitrov 34*6fef4fc7SKonstantin Dimitrov extern struct dvb_frontend *ts2020_attach( 35*6fef4fc7SKonstantin Dimitrov struct dvb_frontend *fe, 36*6fef4fc7SKonstantin Dimitrov const struct ts2020_config *config, 37*6fef4fc7SKonstantin Dimitrov struct i2c_adapter *i2c); 38*6fef4fc7SKonstantin Dimitrov #else 39*6fef4fc7SKonstantin Dimitrov static inline struct dvb_frontend *ts2020_attach( 40*6fef4fc7SKonstantin Dimitrov struct dvb_frontend *fe, 41*6fef4fc7SKonstantin Dimitrov const struct ts2020_config *config, 42*6fef4fc7SKonstantin Dimitrov struct i2c_adapter *i2c) 43*6fef4fc7SKonstantin Dimitrov { 44*6fef4fc7SKonstantin Dimitrov printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 45*6fef4fc7SKonstantin Dimitrov return NULL; 46*6fef4fc7SKonstantin Dimitrov } 47*6fef4fc7SKonstantin Dimitrov #endif 48*6fef4fc7SKonstantin Dimitrov 49*6fef4fc7SKonstantin Dimitrov #endif /* TS2020_H */ 50