rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #ifndef _STV6111_H_ |
2 | #define _STV6111_H_ | ||||
3 | |||||
4 | #if IS_REACHABLE(CONFIG_DVB_STV6111) | ||||
5 | |||||
6 | struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe, | ||||
7 | struct i2c_adapter *i2c, u8 adr); | ||||
8 | |||||
9 | #else | ||||
10 | |||||
11 | static inline struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe, | ||||
12 | struct i2c_adapter *i2c, | ||||
13 | u8 adr) | ||||
14 | { | ||||
15 | pr_warn("%s: Driver disabled by Kconfig\n", __func__); | ||||
16 | return NULL; | ||||
17 | } | ||||
18 | |||||
19 | #endif /* CONFIG_DVB_STV6111 */ | ||||
20 | |||||
21 | #endif /* _STV6111_H_ */ |