This source file includes following definitions.
- tda8261_attach
1
2
3
4
5
6
7
8 #ifndef __TDA8261_H
9 #define __TDA8261_H
10
11 enum tda8261_step {
12 TDA8261_STEP_2000 = 0,
13 TDA8261_STEP_1000,
14 TDA8261_STEP_500,
15 TDA8261_STEP_250,
16 TDA8261_STEP_125
17 };
18
19 struct tda8261_config {
20
21 u8 addr;
22 enum tda8261_step step_size;
23 };
24
25 #if IS_REACHABLE(CONFIG_DVB_TDA8261)
26
27 extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
28 const struct tda8261_config *config,
29 struct i2c_adapter *i2c);
30
31 #else
32
33 static inline struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
34 const struct tda8261_config *config,
35 struct i2c_adapter *i2c)
36 {
37 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
38 return NULL;
39 }
40
41 #endif
42
43 #endif