0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef __DVB_TDA827X_H__
0012 #define __DVB_TDA827X_H__
0013
0014 #include <linux/i2c.h>
0015 #include <media/dvb_frontend.h>
0016 #include "tda8290.h"
0017
0018 struct tda827x_config
0019 {
0020
0021 int (*init) (struct dvb_frontend *fe);
0022 int (*sleep) (struct dvb_frontend *fe);
0023
0024
0025 enum tda8290_lna config;
0026 int switch_addr;
0027
0028 void (*agcf)(struct dvb_frontend *fe);
0029 };
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_TDA827X)
0042 extern struct dvb_frontend* tda827x_attach(struct dvb_frontend *fe, int addr,
0043 struct i2c_adapter *i2c,
0044 struct tda827x_config *cfg);
0045 #else
0046 static inline struct dvb_frontend* tda827x_attach(struct dvb_frontend *fe,
0047 int addr,
0048 struct i2c_adapter *i2c,
0049 struct tda827x_config *cfg)
0050 {
0051 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0052 return NULL;
0053 }
0054 #endif
0055
0056 #endif