This source file includes following definitions.
- helene_attach
- helene_attach_s
1
2
3
4
5
6
7
8
9
10
11
12 #ifndef __DVB_HELENE_H__
13 #define __DVB_HELENE_H__
14
15 #include <linux/dvb/frontend.h>
16 #include <linux/i2c.h>
17
18 enum helene_xtal {
19 SONY_HELENE_XTAL_16000,
20 SONY_HELENE_XTAL_20500,
21 SONY_HELENE_XTAL_24000,
22 SONY_HELENE_XTAL_41000
23 };
24
25
26
27
28
29
30
31
32
33
34
35 struct helene_config {
36 u8 i2c_address;
37 u8 xtal_freq_mhz;
38 void *set_tuner_priv;
39 int (*set_tuner_callback)(void *, int);
40 enum helene_xtal xtal;
41
42 struct dvb_frontend *fe;
43 };
44
45 #if IS_REACHABLE(CONFIG_DVB_HELENE)
46
47
48
49
50
51
52
53
54
55 extern struct dvb_frontend *helene_attach(struct dvb_frontend *fe,
56 const struct helene_config *config,
57 struct i2c_adapter *i2c);
58
59
60
61
62
63
64
65
66
67
68 extern struct dvb_frontend *helene_attach_s(struct dvb_frontend *fe,
69 const struct helene_config *config,
70 struct i2c_adapter *i2c);
71 #else
72 static inline struct dvb_frontend *helene_attach(struct dvb_frontend *fe,
73 const struct helene_config *config,
74 struct i2c_adapter *i2c)
75 {
76 pr_warn("%s: driver disabled by Kconfig\n", __func__);
77 return NULL;
78 }
79 static inline struct dvb_frontend *helene_attach_s(struct dvb_frontend *fe,
80 const struct helene_config *config,
81 struct i2c_adapter *i2c)
82 {
83 pr_warn("%s: driver disabled by Kconfig\n", __func__);
84 return NULL;
85 }
86 #endif
87
88 #endif