This source file includes following definitions.
- mt352_attach
- mt352_write
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #ifndef MT352_H
20 #define MT352_H
21
22 #include <linux/dvb/frontend.h>
23
24 struct mt352_config
25 {
26
27 u8 demod_address;
28
29
30 int adc_clock;
31 int if2;
32
33
34 int no_tuner;
35
36
37 int (*demod_init)(struct dvb_frontend* fe);
38 };
39
40 #if IS_REACHABLE(CONFIG_DVB_MT352)
41 extern struct dvb_frontend* mt352_attach(const struct mt352_config* config,
42 struct i2c_adapter* i2c);
43 #else
44 static inline struct dvb_frontend* mt352_attach(const struct mt352_config* config,
45 struct i2c_adapter* i2c)
46 {
47 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
48 return NULL;
49 }
50 #endif
51
52 static inline int mt352_write(struct dvb_frontend *fe, const u8 buf[], int len) {
53 int r = 0;
54 if (fe->ops.write)
55 r = fe->ops.write(fe, buf, len);
56 return r;
57 }
58
59 #endif