xref: /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/itd1000.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  *  Driver for the Integrant ITD1000 "Zero-IF Tuner IC for Direct Broadcast Satellite"
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  *  Copyright (c) 2007 Patrick Boettcher <pb@linuxtv.org>
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef ITD1000_H
9*4882a593Smuzhiyun #define ITD1000_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun struct dvb_frontend;
12*4882a593Smuzhiyun struct i2c_adapter;
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun struct itd1000_config {
15*4882a593Smuzhiyun 	u8 i2c_address;
16*4882a593Smuzhiyun };
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #if IS_REACHABLE(CONFIG_DVB_TUNER_ITD1000)
19*4882a593Smuzhiyun extern struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg);
20*4882a593Smuzhiyun #else
itd1000_attach(struct dvb_frontend * fe,struct i2c_adapter * i2c,struct itd1000_config * cfg)21*4882a593Smuzhiyun static inline struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg)
22*4882a593Smuzhiyun {
23*4882a593Smuzhiyun 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
24*4882a593Smuzhiyun 	return NULL;
25*4882a593Smuzhiyun }
26*4882a593Smuzhiyun #endif
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif
29