This source file includes following definitions.
- cx24120_attach
1
2
3
4
5
6
7
8
9
10
11 #ifndef CX24120_H
12 #define CX24120_H
13
14 #include <linux/dvb/frontend.h>
15 #include <linux/firmware.h>
16
17 struct cx24120_initial_mpeg_config {
18 u8 x1;
19 u8 x2;
20 u8 x3;
21 };
22
23 struct cx24120_config {
24 u8 i2c_addr;
25 u32 xtal_khz;
26 struct cx24120_initial_mpeg_config initial_mpeg_config;
27
28 int (*request_firmware)(struct dvb_frontend *fe,
29 const struct firmware **fw, char *name);
30
31
32 u16 i2c_wr_max;
33 };
34
35 #if IS_REACHABLE(CONFIG_DVB_CX24120)
36 struct dvb_frontend *cx24120_attach(const struct cx24120_config *config,
37 struct i2c_adapter *i2c);
38 #else
39 static inline
40 struct dvb_frontend *cx24120_attach(const struct cx24120_config *config,
41 struct i2c_adapter *i2c)
42 {
43 pr_warn("%s: driver disabled by Kconfig\n", __func__);
44 return NULL;
45 }
46 #endif
47
48 #endif