aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/tda8290.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-27 02:00:57 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 19:01:30 -0200
commit8c125f2ceb3ec1ba01e96fffd8558ef163b40fe8 (patch)
tree04ba00ab3874035ec554fcd1a5b5812f42463082 /drivers/media/video/tda8290.h
parent393bf5573269979aa3fb55d1bdd0db4fcb288f99 (diff)
V4L/DVB (6468): tda8290: auto-detect tda8290 or tda8295
Consolidate tda8290_attach() and tda8295_attach() into a single function, tda829x_attach(), which will detect chip combinations tda8290 or tda8295 with tda8275, tda8275a or tda18271. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tda8290.h')
-rw-r--r--drivers/media/video/tda8290.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/media/video/tda8290.h b/drivers/media/video/tda8290.h
index dbbcb0f001e..81517370b8d 100644
--- a/drivers/media/video/tda8290.h
+++ b/drivers/media/video/tda8290.h
@@ -23,8 +23,7 @@
#if defined(CONFIG_TUNER_TDA8290) || (defined(CONFIG_TUNER_TDA8290_MODULE) && defined(MODULE))
extern int tda8290_probe(struct tuner *t);
-extern int tda8290_attach(struct tuner *t);
-extern int tda8295_attach(struct tuner *t);
+extern int tda829x_attach(struct tuner *t);
#else
static inline int tda8290_probe(struct tuner *t)
{
@@ -32,14 +31,7 @@ static inline int tda8290_probe(struct tuner *t)
return -EINVAL;
}
-static inline int tda8290_attach(struct tuner *t)
-{
- printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
- __FUNCTION__);
- return -EINVAL;
-}
-
-static inline int tda8295_attach(struct tuner *t)
+static inline int tda829x_attach(struct tuner *t)
{
printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
__FUNCTION__);