aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda8290.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tda8290.h')
-rw-r--r--drivers/media/video/tda8290.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/drivers/media/video/tda8290.h b/drivers/media/video/tda8290.h
index 3a1f04520615..4c547577e7ca 100644
--- a/drivers/media/video/tda8290.h
+++ b/drivers/media/video/tda8290.h
@@ -18,24 +18,36 @@
18#define __TDA8290_H__ 18#define __TDA8290_H__
19 19
20#include <linux/i2c.h> 20#include <linux/i2c.h>
21#include "tuner-driver.h" 21#include "dvb_frontend.h"
22
23struct tda829x_config
24{
25 unsigned int *lna_cfg;
26 int (*tuner_callback) (void *dev, int command, int arg);
27};
22 28
23#if defined(CONFIG_TUNER_TDA8290) || (defined(CONFIG_TUNER_TDA8290_MODULE) && defined(MODULE)) 29#if defined(CONFIG_TUNER_TDA8290) || (defined(CONFIG_TUNER_TDA8290_MODULE) && defined(MODULE))
24extern int tda829x_probe(struct tuner *t); 30extern int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr);
25 31
26extern int tda829x_attach(struct tuner *t); 32extern struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
33 struct i2c_adapter *i2c_adap,
34 u8 i2c_addr,
35 struct tda829x_config *cfg);
27#else 36#else
28static inline int tda829x_probe(struct tuner *t) 37static inline int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr)
29{ 38{
30 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 39 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
31 return -EINVAL; 40 return -EINVAL;
32} 41}
33 42
34static inline int tda829x_attach(struct tuner *t) 43static inline struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
44 struct i2c_adapter *i2c_adap,
45 u8 i2c_addr,
46 struct tda829x_config *cfg)
35{ 47{
36 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", 48 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
37 __FUNCTION__); 49 __FUNCTION__);
38 return -EINVAL; 50 return NULL;
39} 51}
40#endif 52#endif
41 53