0001
0002
0003
0004
0005
0006
0007
0008 #ifndef OR51211_H
0009 #define OR51211_H
0010
0011 #include <linux/dvb/frontend.h>
0012 #include <linux/firmware.h>
0013
0014 struct or51211_config
0015 {
0016
0017 u8 demod_address;
0018
0019
0020 int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);
0021 void (*setmode)(struct dvb_frontend * fe, int mode);
0022 void (*reset)(struct dvb_frontend * fe);
0023 void (*sleep)(struct dvb_frontend * fe);
0024 };
0025
0026 #if IS_REACHABLE(CONFIG_DVB_OR51211)
0027 extern struct dvb_frontend* or51211_attach(const struct or51211_config* config,
0028 struct i2c_adapter* i2c);
0029 #else
0030 static inline struct dvb_frontend* or51211_attach(const struct or51211_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
0038 #endif
0039