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