1*ccae7af2SMauro Carvalho Chehab /* 2*ccae7af2SMauro Carvalho Chehab This program is free software; you can redistribute it and/or modify 3*ccae7af2SMauro Carvalho Chehab it under the terms of the GNU General Public License as published by 4*ccae7af2SMauro Carvalho Chehab the Free Software Foundation; either version 2 of the License, or 5*ccae7af2SMauro Carvalho Chehab (at your option) any later version. 6*ccae7af2SMauro Carvalho Chehab 7*ccae7af2SMauro Carvalho Chehab This program is distributed in the hope that it will be useful, 8*ccae7af2SMauro Carvalho Chehab but WITHOUT ANY WARRANTY; without even the implied warranty of 9*ccae7af2SMauro Carvalho Chehab MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10*ccae7af2SMauro Carvalho Chehab GNU General Public License for more details. 11*ccae7af2SMauro Carvalho Chehab 12*ccae7af2SMauro Carvalho Chehab You should have received a copy of the GNU General Public License 13*ccae7af2SMauro Carvalho Chehab along with this program; if not, write to the Free Software 14*ccae7af2SMauro Carvalho Chehab Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 15*ccae7af2SMauro Carvalho Chehab */ 16*ccae7af2SMauro Carvalho Chehab 17*ccae7af2SMauro Carvalho Chehab #ifndef __TUNER_SIMPLE_H__ 18*ccae7af2SMauro Carvalho Chehab #define __TUNER_SIMPLE_H__ 19*ccae7af2SMauro Carvalho Chehab 20*ccae7af2SMauro Carvalho Chehab #include <linux/i2c.h> 21*ccae7af2SMauro Carvalho Chehab #include "dvb_frontend.h" 22*ccae7af2SMauro Carvalho Chehab 23*ccae7af2SMauro Carvalho Chehab #if defined(CONFIG_MEDIA_TUNER_SIMPLE) || (defined(CONFIG_MEDIA_TUNER_SIMPLE_MODULE) && defined(MODULE)) 24*ccae7af2SMauro Carvalho Chehab extern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, 25*ccae7af2SMauro Carvalho Chehab struct i2c_adapter *i2c_adap, 26*ccae7af2SMauro Carvalho Chehab u8 i2c_addr, 27*ccae7af2SMauro Carvalho Chehab unsigned int type); 28*ccae7af2SMauro Carvalho Chehab #else 29*ccae7af2SMauro Carvalho Chehab static inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, 30*ccae7af2SMauro Carvalho Chehab struct i2c_adapter *i2c_adap, 31*ccae7af2SMauro Carvalho Chehab u8 i2c_addr, 32*ccae7af2SMauro Carvalho Chehab unsigned int type) 33*ccae7af2SMauro Carvalho Chehab { 34*ccae7af2SMauro Carvalho Chehab printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 35*ccae7af2SMauro Carvalho Chehab return NULL; 36*ccae7af2SMauro Carvalho Chehab } 37*ccae7af2SMauro Carvalho Chehab #endif 38*ccae7af2SMauro Carvalho Chehab 39*ccae7af2SMauro Carvalho Chehab #endif /* __TUNER_SIMPLE_H__ */ 40