0001
0002
0003
0004
0005
0006
0007
0008 #ifndef ZD1301_DEMOD_H
0009 #define ZD1301_DEMOD_H
0010
0011 #include <linux/platform_device.h>
0012 #include <linux/dvb/frontend.h>
0013 #include <media/dvb_frontend.h>
0014
0015
0016
0017
0018
0019
0020
0021 struct zd1301_demod_platform_data {
0022 void *reg_priv;
0023 int (*reg_read)(void *, u16, u8 *);
0024 int (*reg_write)(void *, u16, u8);
0025 };
0026
0027 #if IS_REACHABLE(CONFIG_DVB_ZD1301_DEMOD)
0028
0029
0030
0031
0032
0033
0034 struct dvb_frontend *zd1301_demod_get_dvb_frontend(struct platform_device *pdev);
0035
0036
0037
0038
0039
0040
0041
0042 struct i2c_adapter *zd1301_demod_get_i2c_adapter(struct platform_device *pdev);
0043
0044 #else
0045
0046 static inline struct dvb_frontend *zd1301_demod_get_dvb_frontend(struct platform_device *dev)
0047 {
0048 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0049
0050 return NULL;
0051 }
0052 static inline struct i2c_adapter *zd1301_demod_get_i2c_adapter(struct platform_device *dev)
0053 {
0054 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0055
0056 return NULL;
0057 }
0058
0059 #endif
0060
0061 #endif