xref: /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/tda18271c2dd.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _TDA18271C2DD_H_
3*4882a593Smuzhiyun #define _TDA18271C2DD_H_
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #if IS_REACHABLE(CONFIG_DVB_TDA18271C2DD)
6*4882a593Smuzhiyun struct dvb_frontend *tda18271c2dd_attach(struct dvb_frontend *fe,
7*4882a593Smuzhiyun 					 struct i2c_adapter *i2c, u8 adr);
8*4882a593Smuzhiyun #else
tda18271c2dd_attach(struct dvb_frontend * fe,struct i2c_adapter * i2c,u8 adr)9*4882a593Smuzhiyun static inline struct dvb_frontend *tda18271c2dd_attach(struct dvb_frontend *fe,
10*4882a593Smuzhiyun 					 struct i2c_adapter *i2c, u8 adr)
11*4882a593Smuzhiyun {
12*4882a593Smuzhiyun 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
13*4882a593Smuzhiyun 	return NULL;
14*4882a593Smuzhiyun }
15*4882a593Smuzhiyun #endif
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #endif
18