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