This source file includes following definitions.
- mt2060_attach
1
2
3
4
5
6
7
8 #ifndef MT2060_H
9 #define MT2060_H
10
11 struct dvb_frontend;
12 struct i2c_adapter;
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 struct mt2060_platform_data {
29 u8 clock_out;
30 u16 if1;
31 unsigned int i2c_write_max:5;
32 struct dvb_frontend *dvb_frontend;
33 };
34
35
36
37 struct mt2060_config {
38 u8 i2c_address;
39 u8 clock_out;
40 };
41
42 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2060)
43 extern struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1);
44 #else
45 static inline struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1)
46 {
47 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
48 return NULL;
49 }
50 #endif
51
52 #endif