This source file includes following definitions.
- sp8870_attach
1
2
3
4
5
6
7
8
9
10 #ifndef SP8870_H
11 #define SP8870_H
12
13 #include <linux/dvb/frontend.h>
14 #include <linux/firmware.h>
15
16 struct sp8870_config
17 {
18
19 u8 demod_address;
20
21
22 int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);
23 };
24
25 #if IS_REACHABLE(CONFIG_DVB_SP8870)
26 extern struct dvb_frontend* sp8870_attach(const struct sp8870_config* config,
27 struct i2c_adapter* i2c);
28 #else
29 static inline struct dvb_frontend* sp8870_attach(const struct sp8870_config* config,
30 struct i2c_adapter* i2c)
31 {
32 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
33 return NULL;
34 }
35 #endif
36
37 #endif