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