summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda8290.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-12-11 11:56:04 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-12-11 11:56:04 -0200
commit6ddc0844c5e7e40b765d290ac06a93b12eda4e8b (patch)
tree0b9b10c2e844ce202209a198f45276bd8ebd6bca /linux/drivers/media/video/tda8290.h
parentcdd8a614f8de70d50a815bad283ceab2bfe9a625 (diff)
parentca436a99a3cc379dbd8d76c612f54971220a7ff5 (diff)
downloadmediapointer-dvb-s2-6ddc0844c5e7e40b765d290ac06a93b12eda4e8b.tar.gz
mediapointer-dvb-s2-6ddc0844c5e7e40b765d290ac06a93b12eda4e8b.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/tuner
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/tda8290.h')
-rw-r--r--linux/drivers/media/video/tda8290.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/linux/drivers/media/video/tda8290.h b/linux/drivers/media/video/tda8290.h
index 3a1f04520..7bce03183 100644
--- a/linux/drivers/media/video/tda8290.h
+++ b/linux/drivers/media/video/tda8290.h
@@ -18,24 +18,35 @@
#define __TDA8290_H__
#include <linux/i2c.h>
-#include "tuner-driver.h"
+#include "dvb_frontend.h"
+
+struct tda829x_config {
+ unsigned int *lna_cfg;
+ int (*tuner_callback) (void *dev, int command, int arg);
+};
#if defined(CONFIG_TUNER_TDA8290) || (defined(CONFIG_TUNER_TDA8290_MODULE) && defined(MODULE))
-extern int tda829x_probe(struct tuner *t);
+extern int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr);
-extern int tda829x_attach(struct tuner *t);
+extern struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
+ struct i2c_adapter *i2c_adap,
+ u8 i2c_addr,
+ struct tda829x_config *cfg);
#else
-static inline int tda829x_probe(struct tuner *t)
+static inline int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
return -EINVAL;
}
-static inline int tda829x_attach(struct tuner *t)
+static inline struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
+ struct i2c_adapter *i2c_adap,
+ u8 i2c_addr,
+ struct tda829x_config *cfg)
{
printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
__FUNCTION__);
- return -EINVAL;
+ return NULL;
}
#endif