0001
0002
0003
0004
0005
0006
0007
0008 #ifndef MT2060_H
0009 #define MT2060_H
0010
0011 struct dvb_frontend;
0012 struct i2c_adapter;
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 struct mt2060_platform_data {
0029 u8 clock_out;
0030 u16 if1;
0031 unsigned int i2c_write_max:5;
0032 struct dvb_frontend *dvb_frontend;
0033 };
0034
0035
0036
0037 struct mt2060_config {
0038 u8 i2c_address;
0039 u8 clock_out;
0040 };
0041
0042 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2060)
0043 extern struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1);
0044 #else
0045 static inline struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1)
0046 {
0047 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0048 return NULL;
0049 }
0050 #endif
0051
0052 #endif