0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef CX22702_H
0017 #define CX22702_H
0018
0019 #include <linux/dvb/frontend.h>
0020
0021 struct cx22702_config {
0022
0023 u8 demod_address;
0024
0025
0026 #define CX22702_PARALLEL_OUTPUT 0
0027 #define CX22702_SERIAL_OUTPUT 1
0028 u8 output_mode;
0029 };
0030
0031 #if IS_REACHABLE(CONFIG_DVB_CX22702)
0032 extern struct dvb_frontend *cx22702_attach(
0033 const struct cx22702_config *config,
0034 struct i2c_adapter *i2c);
0035 #else
0036 static inline struct dvb_frontend *cx22702_attach(
0037 const struct cx22702_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