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