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