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