xref: /OK3568_Linux_fs/kernel/drivers/media/tuners/mt2266.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  *  Driver for Microtune MT2266 "Direct conversion low power broadband tuner"
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  *  Copyright (c) 2007 Olivier DANET <odanet@caramail.com>
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef MT2266_H
9*4882a593Smuzhiyun #define MT2266_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun struct dvb_frontend;
12*4882a593Smuzhiyun struct i2c_adapter;
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun struct mt2266_config {
15*4882a593Smuzhiyun 	u8 i2c_address;
16*4882a593Smuzhiyun };
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2266)
19*4882a593Smuzhiyun extern struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg);
20*4882a593Smuzhiyun #else
mt2266_attach(struct dvb_frontend * fe,struct i2c_adapter * i2c,struct mt2266_config * cfg)21*4882a593Smuzhiyun static inline struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_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 // CONFIG_MEDIA_TUNER_MT2266
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif
29