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