blob: fccd8d9b665fd273051cfc1ef4757f8fa131d519 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#ifndef _STV0910_H_
2#define _STV0910_H_
3
4#include <linux/types.h>
5#include <linux/i2c.h>
6
7struct stv0910_cfg {
8 u32 clk;
9 u8 adr;
10 u8 parallel;
11 u8 rptlvl;
12 u8 single;
13};
14
15#if IS_REACHABLE(CONFIG_DVB_STV0910)
16
17struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
18 struct stv0910_cfg *cfg, int nr);
19
20#else
21
22static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
23 struct stv0910_cfg *cfg,
24 int nr)
25{
26 pr_warn("%s: driver disabled by Kconfig\n", __func__);
27 return NULL;
28}
29
30#endif /* CONFIG_DVB_STV0910 */
31
32#endif /* _STV0910_H_ */