This source file includes following definitions.
- stv0288_attach
- stv0288_writereg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #ifndef STV0288_H
16 #define STV0288_H
17
18 #include <linux/dvb/frontend.h>
19 #include <media/dvb_frontend.h>
20
21 struct stv0288_config {
22
23 u8 demod_address;
24
25 u8* inittab;
26
27
28 int min_delay_ms;
29
30 int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured);
31 };
32
33 #if IS_REACHABLE(CONFIG_DVB_STV0288)
34 extern struct dvb_frontend *stv0288_attach(const struct stv0288_config *config,
35 struct i2c_adapter *i2c);
36 #else
37 static inline struct dvb_frontend *stv0288_attach(const struct stv0288_config *config,
38 struct i2c_adapter *i2c)
39 {
40 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
41 return NULL;
42 }
43 #endif
44
45 static inline int stv0288_writereg(struct dvb_frontend *fe, u8 reg, u8 val)
46 {
47 int r = 0;
48 u8 buf[] = { reg, val };
49 if (fe->ops.write)
50 r = fe->ops.write(fe, buf, 2);
51 return r;
52 }
53
54 #endif