This source file includes following definitions.
- mxl5xx_attach
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #ifndef _MXL5XX_H_
24 #define _MXL5XX_H_
25
26 #include <linux/types.h>
27 #include <linux/i2c.h>
28
29 #include <media/dvb_frontend.h>
30
31 struct mxl5xx_cfg {
32 u8 adr;
33 u8 type;
34 u32 cap;
35 u32 clk;
36 u32 ts_clk;
37
38 u8 *fw;
39 u32 fw_len;
40
41 int (*fw_read)(void *priv, u8 *buf, u32 len);
42 void *fw_priv;
43 };
44
45 #if IS_REACHABLE(CONFIG_DVB_MXL5XX)
46
47 extern struct dvb_frontend *mxl5xx_attach(struct i2c_adapter *i2c,
48 struct mxl5xx_cfg *cfg, u32 demod, u32 tuner,
49 int (**fn_set_input)(struct dvb_frontend *, int));
50
51 #else
52
53 static inline struct dvb_frontend *mxl5xx_attach(struct i2c_adapter *i2c,
54 struct mxl5xx_cfg *cfg, u32 demod, u32 tuner,
55 int (**fn_set_input)(struct dvb_frontend *, int))
56 {
57 pr_warn("%s: driver disabled by Kconfig\n", __func__);
58 return NULL;
59 }
60
61 #endif
62
63 #endif