GNU Linux-libre 4.19.245-gnu1
[releases.git] / drivers / media / dvb-frontends / stv0910.h
1 #ifndef _STV0910_H_
2 #define _STV0910_H_
3
4 #include <linux/types.h>
5 #include <linux/i2c.h>
6
7 struct stv0910_cfg {
8         u32 clk;
9         u8  adr;
10         u8  parallel;
11         u8  rptlvl;
12         u8  single;
13         u8  tsspeed;
14 };
15
16 #if IS_REACHABLE(CONFIG_DVB_STV0910)
17
18 struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
19                                     struct stv0910_cfg *cfg, int nr);
20
21 #else
22
23 static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
24                                                   struct stv0910_cfg *cfg,
25                                                   int nr)
26 {
27         pr_warn("%s: driver disabled by Kconfig\n", __func__);
28         return NULL;
29 }
30
31 #endif /* CONFIG_DVB_STV0910 */
32
33 #endif /* _STV0910_H_ */