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