This source file includes following definitions.
- stv6110_attach
1
2
3
4
5
6
7
8
9
10
11 #ifndef __DVB_STV6110_H__
12 #define __DVB_STV6110_H__
13
14 #include <linux/i2c.h>
15 #include <media/dvb_frontend.h>
16
17
18 #define RSTV6110_CTRL1 0
19 #define RSTV6110_CTRL2 1
20 #define RSTV6110_TUNING1 2
21 #define RSTV6110_TUNING2 3
22 #define RSTV6110_CTRL3 4
23 #define RSTV6110_STAT1 5
24 #define RSTV6110_STAT2 6
25 #define RSTV6110_STAT3 7
26
27 struct stv6110_config {
28 u8 i2c_address;
29 u32 mclk;
30 u8 gain;
31 u8 clk_div;
32 };
33
34 #if IS_REACHABLE(CONFIG_DVB_STV6110)
35 extern struct dvb_frontend *stv6110_attach(struct dvb_frontend *fe,
36 const struct stv6110_config *config,
37 struct i2c_adapter *i2c);
38 #else
39 static inline struct dvb_frontend *stv6110_attach(struct dvb_frontend *fe,
40 const struct stv6110_config *config,
41 struct i2c_adapter *i2c)
42 {
43 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
44 return NULL;
45 }
46 #endif
47
48 #endif