Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / media / dvb-frontends / mxl5xx.h
blobad4c218468006d20234e87f512f36a9c3c9d3fc1
1 #ifndef _MXL5XX_H_
2 #define _MXL5XX_H_
4 #include <linux/types.h>
5 #include <linux/i2c.h>
7 #include <media/dvb_frontend.h>
9 struct mxl5xx_cfg {
10 u8 adr;
11 u8 type;
12 u32 cap;
13 u32 clk;
14 u32 ts_clk;
16 u8 *fw;
17 u32 fw_len;
19 int (*fw_read)(void *priv, u8 *buf, u32 len);
20 void *fw_priv;
23 #if IS_REACHABLE(CONFIG_DVB_MXL5XX)
25 extern struct dvb_frontend *mxl5xx_attach(struct i2c_adapter *i2c,
26 struct mxl5xx_cfg *cfg, u32 demod, u32 tuner,
27 int (**fn_set_input)(struct dvb_frontend *, int));
29 #else
31 static inline struct dvb_frontend *mxl5xx_attach(struct i2c_adapter *i2c,
32 struct mxl5xx_cfg *cfg, u32 demod, u32 tuner,
33 int (**fn_set_input)(struct dvb_frontend *, int))
35 pr_warn("%s: driver disabled by Kconfig\n", __func__);
36 return NULL;
39 #endif /* CONFIG_DVB_MXL5XX */
41 #endif /* _MXL5XX_H_ */