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