0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef _STV0910_H_
0011 #define _STV0910_H_
0012
0013 #include <linux/types.h>
0014 #include <linux/i2c.h>
0015
0016 struct stv0910_cfg {
0017 u32 clk;
0018 u8 adr;
0019 u8 parallel;
0020 u8 rptlvl;
0021 u8 single;
0022 u8 tsspeed;
0023 };
0024
0025 #if IS_REACHABLE(CONFIG_DVB_STV0910)
0026
0027 struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
0028 struct stv0910_cfg *cfg, int nr);
0029
0030 #else
0031
0032 static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
0033 struct stv0910_cfg *cfg,
0034 int nr)
0035 {
0036 pr_warn("%s: driver disabled by Kconfig\n", __func__);
0037 return NULL;
0038 }
0039
0040 #endif
0041
0042 #endif