0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef MT312_H
0014 #define MT312_H
0015
0016 #include <linux/dvb/frontend.h>
0017
0018 struct mt312_config {
0019
0020 u8 demod_address;
0021
0022
0023 unsigned int voltage_inverted:1;
0024 };
0025
0026 #if IS_REACHABLE(CONFIG_DVB_MT312)
0027 struct dvb_frontend *mt312_attach(const struct mt312_config *config,
0028 struct i2c_adapter *i2c);
0029 #else
0030 static inline struct dvb_frontend *mt312_attach(
0031 const struct mt312_config *config, struct i2c_adapter *i2c)
0032 {
0033 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0034 return NULL;
0035 }
0036 #endif
0037
0038 #endif