0001
0002
0003
0004
0005
0006
0007
0008 #ifndef __TDA8261_H
0009 #define __TDA8261_H
0010
0011 enum tda8261_step {
0012 TDA8261_STEP_2000 = 0,
0013 TDA8261_STEP_1000,
0014 TDA8261_STEP_500,
0015 TDA8261_STEP_250,
0016 TDA8261_STEP_125
0017 };
0018
0019 struct tda8261_config {
0020
0021 u8 addr;
0022 enum tda8261_step step_size;
0023 };
0024
0025 #if IS_REACHABLE(CONFIG_DVB_TDA8261)
0026
0027 extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
0028 const struct tda8261_config *config,
0029 struct i2c_adapter *i2c);
0030
0031 #else
0032
0033 static inline struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
0034 const struct tda8261_config *config,
0035 struct i2c_adapter *i2c)
0036 {
0037 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
0038 return NULL;
0039 }
0040
0041 #endif
0042
0043 #endif