This source file includes following definitions.
- zd1301_demod_get_dvb_frontend
- zd1301_demod_get_i2c_adapter
1
2
3
4
5
6
7
8 #ifndef ZD1301_DEMOD_H
9 #define ZD1301_DEMOD_H
10
11 #include <linux/platform_device.h>
12 #include <linux/dvb/frontend.h>
13 #include <media/dvb_frontend.h>
14
15
16
17
18
19
20
21 struct zd1301_demod_platform_data {
22 void *reg_priv;
23 int (*reg_read)(void *, u16, u8 *);
24 int (*reg_write)(void *, u16, u8);
25 };
26
27 #if IS_REACHABLE(CONFIG_DVB_ZD1301_DEMOD)
28
29
30
31
32
33
34 struct dvb_frontend *zd1301_demod_get_dvb_frontend(struct platform_device *pdev);
35
36
37
38
39
40
41
42 struct i2c_adapter *zd1301_demod_get_i2c_adapter(struct platform_device *pdev);
43
44 #else
45
46
47
48
49
50
51
52 static inline struct dvb_frontend *zd1301_demod_get_dvb_frontend(struct platform_device *dev)
53 {
54 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
55
56 return NULL;
57 }
58 static inline struct i2c_adapter *zd1301_demod_get_i2c_adapter(struct platform_device *dev)
59 {
60 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
61
62 return NULL;
63 }
64
65 #endif
66
67 #endif