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