0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef CX24116_H
0010 #define CX24116_H
0011
0012 #include <linux/dvb/frontend.h>
0013
0014 struct cx24116_config {
0015
0016 u8 demod_address;
0017
0018
0019 int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured);
0020
0021
0022 int (*reset_device)(struct dvb_frontend *fe);
0023
0024
0025 u8 mpg_clk_pos_pol:0x02;
0026
0027
0028 u16 i2c_wr_max;
0029 };
0030
0031 #if IS_REACHABLE(CONFIG_DVB_CX24116)
0032 extern struct dvb_frontend *cx24116_attach(
0033 const struct cx24116_config *config,
0034 struct i2c_adapter *i2c);
0035 #else
0036 static inline struct dvb_frontend *cx24116_attach(
0037 const struct cx24116_config *config,
0038 struct i2c_adapter *i2c)
0039 {
0040 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0041 return NULL;
0042 }
0043 #endif
0044
0045 #endif