aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda8290.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-27 01:00:57 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:01:30 -0500
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 dbbcb0f001e0..81517370b8d6 100644
--- a/drivers/media/video/tda8290.h
+++ b/drivers/media/video/tda8290.h
@@ -23,8 +23,7 @@
23#if defined(CONFIG_TUNER_TDA8290) || (defined(CONFIG_TUNER_TDA8290_MODULE) && defined(MODULE)) 23#if defined(CONFIG_TUNER_TDA8290) || (defined(CONFIG_TUNER_TDA8290_MODULE) && defined(MODULE))
24extern int tda8290_probe(struct tuner *t); 24extern int tda8290_probe(struct tuner *t);
25 25
26extern int tda8290_attach(struct tuner *t); 26extern int tda829x_attach(struct tuner *t);
27extern int tda8295_attach(struct tuner *t);
28#else 27#else
29static inline int tda8290_probe(struct tuner *t) 28static inline int tda8290_probe(struct tuner *t)
30{ 29{
@@ -32,14 +31,7 @@ static inline int tda8290_probe(struct tuner *t)
32 return -EINVAL; 31 return -EINVAL;
33} 32}
34 33
35static inline int tda8290_attach(struct tuner *t) 34static inline int tda829x_attach(struct tuner *t)
36{
37 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
38 __FUNCTION__);
39 return -EINVAL;
40}
41
42static inline int tda8295_attach(struct tuner *t)
43{ 35{
44 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", 36 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
45 __FUNCTION__); 37 __FUNCTION__);