0001
0002
0003
0004
0005
0006
0007
0008 #ifndef CX24113_H
0009 #define CX24113_H
0010
0011 struct dvb_frontend;
0012
0013 struct cx24113_config {
0014 u8 i2c_addr;
0015
0016 u32 xtal_khz;
0017 };
0018
0019 #if IS_REACHABLE(CONFIG_DVB_TUNER_CX24113)
0020 extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *,
0021 const struct cx24113_config *config, struct i2c_adapter *i2c);
0022
0023 extern void cx24113_agc_callback(struct dvb_frontend *fe);
0024 #else
0025 static inline struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe,
0026 const struct cx24113_config *config, struct i2c_adapter *i2c)
0027 {
0028 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0029 return NULL;
0030 }
0031
0032 static inline void cx24113_agc_callback(struct dvb_frontend *fe)
0033 {
0034 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0035 }
0036 #endif
0037
0038 #endif