1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __MT2063_H__
3 #define __MT2063_H__
4 
5 #include <media/dvb_frontend.h>
6 
7 struct mt2063_config {
8 	u8 tuner_address;
9 	u32 refclock;
10 };
11 
12 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2063)
13 struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
14 				   struct mt2063_config *config,
15 				   struct i2c_adapter *i2c);
16 
17 #else
18 
mt2063_attach(struct dvb_frontend * fe,struct mt2063_config * config,struct i2c_adapter * i2c)19 static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
20 				   struct mt2063_config *config,
21 				   struct i2c_adapter *i2c)
22 {
23 	printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
24 	return NULL;
25 }
26 
27 #endif /* CONFIG_DVB_MT2063 */
28 
29 #endif /* __MT2063_H__ */
30