0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __MB86A16_H
0010 #define __MB86A16_H
0011
0012 #include <linux/dvb/frontend.h>
0013 #include <media/dvb_frontend.h>
0014
0015
0016 struct mb86a16_config {
0017 u8 demod_address;
0018
0019 int (*set_voltage)(struct dvb_frontend *fe,
0020 enum fe_sec_voltage voltage);
0021 };
0022
0023
0024
0025 #if IS_REACHABLE(CONFIG_DVB_MB86A16)
0026
0027 extern struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
0028 struct i2c_adapter *i2c_adap);
0029
0030 #else
0031
0032 static inline struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
0033 struct i2c_adapter *i2c_adap)
0034 {
0035 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
0036 return NULL;
0037 }
0038
0039 #endif
0040
0041 #endif