xref: /linux/drivers/media/dvb-frontends/itd1000.h (revision 9b174527e7b756cda9f5d9e541f87b7fec9cfdf0)
19a0bf528SMauro Carvalho Chehab /*
29a0bf528SMauro Carvalho Chehab  *  Driver for the Integrant ITD1000 "Zero-IF Tuner IC for Direct Broadcast Satellite"
39a0bf528SMauro Carvalho Chehab  *
49a0bf528SMauro Carvalho Chehab  *  Copyright (c) 2007 Patrick Boettcher <pb@linuxtv.org>
59a0bf528SMauro Carvalho Chehab  *
69a0bf528SMauro Carvalho Chehab  *  This program is free software; you can redistribute it and/or modify
79a0bf528SMauro Carvalho Chehab  *  it under the terms of the GNU General Public License as published by
89a0bf528SMauro Carvalho Chehab  *  the Free Software Foundation; either version 2 of the License, or
99a0bf528SMauro Carvalho Chehab  *  (at your option) any later version.
109a0bf528SMauro Carvalho Chehab  *
119a0bf528SMauro Carvalho Chehab  *  This program is distributed in the hope that it will be useful,
129a0bf528SMauro Carvalho Chehab  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
139a0bf528SMauro Carvalho Chehab  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
149a0bf528SMauro Carvalho Chehab  *
159a0bf528SMauro Carvalho Chehab  *  GNU General Public License for more details.
169a0bf528SMauro Carvalho Chehab  *
179a0bf528SMauro Carvalho Chehab  *  You should have received a copy of the GNU General Public License
189a0bf528SMauro Carvalho Chehab  *  along with this program; if not, write to the Free Software
199a0bf528SMauro Carvalho Chehab  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.=
209a0bf528SMauro Carvalho Chehab  */
219a0bf528SMauro Carvalho Chehab 
229a0bf528SMauro Carvalho Chehab #ifndef ITD1000_H
239a0bf528SMauro Carvalho Chehab #define ITD1000_H
249a0bf528SMauro Carvalho Chehab 
259a0bf528SMauro Carvalho Chehab struct dvb_frontend;
269a0bf528SMauro Carvalho Chehab struct i2c_adapter;
279a0bf528SMauro Carvalho Chehab 
289a0bf528SMauro Carvalho Chehab struct itd1000_config {
299a0bf528SMauro Carvalho Chehab 	u8 i2c_address;
309a0bf528SMauro Carvalho Chehab };
319a0bf528SMauro Carvalho Chehab 
32*9b174527SArnd Bergmann #if IS_REACHABLE(CONFIG_DVB_TUNER_ITD1000)
339a0bf528SMauro Carvalho Chehab extern struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg);
349a0bf528SMauro Carvalho Chehab #else
359a0bf528SMauro Carvalho Chehab static inline struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg)
369a0bf528SMauro Carvalho Chehab {
379a0bf528SMauro Carvalho Chehab 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
389a0bf528SMauro Carvalho Chehab 	return NULL;
399a0bf528SMauro Carvalho Chehab }
409a0bf528SMauro Carvalho Chehab #endif
419a0bf528SMauro Carvalho Chehab 
429a0bf528SMauro Carvalho Chehab #endif
43