This source file includes following definitions.
- ascot2e_attach
1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef __DVB_ASCOT2E_H__
14 #define __DVB_ASCOT2E_H__
15
16 #include <linux/dvb/frontend.h>
17 #include <linux/i2c.h>
18
19
20
21
22
23
24
25
26
27 struct ascot2e_config {
28 u8 i2c_address;
29 u8 xtal_freq_mhz;
30 void *set_tuner_priv;
31 int (*set_tuner_callback)(void *, int);
32 };
33
34 #if IS_REACHABLE(CONFIG_DVB_ASCOT2E)
35
36
37
38
39
40
41
42
43
44 extern struct dvb_frontend *ascot2e_attach(struct dvb_frontend *fe,
45 const struct ascot2e_config *config,
46 struct i2c_adapter *i2c);
47 #else
48 static inline struct dvb_frontend *ascot2e_attach(struct dvb_frontend *fe,
49 const struct ascot2e_config *config,
50 struct i2c_adapter *i2c)
51 {
52 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
53 return NULL;
54 }
55 #endif
56
57 #endif