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