xref: /linux/drivers/media/tuners/tuner-simple.h (revision 0526b56cbc3c489642bd6a5fe4b718dea7ef0ee8)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 */
4 
5 #ifndef __TUNER_SIMPLE_H__
6 #define __TUNER_SIMPLE_H__
7 
8 #include <linux/i2c.h>
9 #include <media/dvb_frontend.h>
10 
11 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_SIMPLE)
12 extern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
13 						struct i2c_adapter *i2c_adap,
14 						u8 i2c_addr,
15 						unsigned int type);
16 #else
17 static inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
18 						       struct i2c_adapter *i2c_adap,
19 						       u8 i2c_addr,
20 						       unsigned int type)
21 {
22 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
23 	return NULL;
24 }
25 #endif
26 
27 #endif /* __TUNER_SIMPLE_H__ */
28