WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / tuners / tuner-simple.h
blob78c51c69c0eaa49bbdf8a8c61ddbd71526b98260
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 */
5 #ifndef __TUNER_SIMPLE_H__
6 #define __TUNER_SIMPLE_H__
8 #include <linux/i2c.h>
9 #include <media/dvb_frontend.h>
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)
22 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
23 return NULL;
25 #endif
27 #endif /* __TUNER_SIMPLE_H__ */