This source file includes following definitions.
- lgdt330x_attach
1
2
3
4
5
6
7
8 #ifndef LGDT330X_H
9 #define LGDT330X_H
10
11 #include <linux/dvb/frontend.h>
12
13 typedef enum lg_chip_t {
14 UNDEFINED,
15 LGDT3302,
16 LGDT3303
17 }lg_chip_type;
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 struct lgdt330x_config
35 {
36 lg_chip_type demod_chip;
37 int serial_mpeg;
38 int (*pll_rf_set) (struct dvb_frontend* fe, int index);
39 int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);
40 int clock_polarity_flip;
41
42 struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
43 };
44
45 #if IS_REACHABLE(CONFIG_DVB_LGDT330X)
46 struct dvb_frontend *lgdt330x_attach(const struct lgdt330x_config *config,
47 u8 demod_address,
48 struct i2c_adapter *i2c);
49 #else
50 static inline
51 struct dvb_frontend *lgdt330x_attach(const struct lgdt330x_config *config,
52 u8 demod_address,
53 struct i2c_adapter *i2c)
54 {
55 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
56 return NULL;
57 }
58 #endif
59
60 #endif