diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-10-27 01:00:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:01:30 -0500 |
commit | 8c125f2ceb3ec1ba01e96fffd8558ef163b40fe8 (patch) | |
tree | 04ba00ab3874035ec554fcd1a5b5812f42463082 /drivers/media/video/tda8290.h | |
parent | 393bf5573269979aa3fb55d1bdd0db4fcb288f99 (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.h | 12 |
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)) |
24 | extern int tda8290_probe(struct tuner *t); | 24 | extern int tda8290_probe(struct tuner *t); |
25 | 25 | ||
26 | extern int tda8290_attach(struct tuner *t); | 26 | extern int tda829x_attach(struct tuner *t); |
27 | extern int tda8295_attach(struct tuner *t); | ||
28 | #else | 27 | #else |
29 | static inline int tda8290_probe(struct tuner *t) | 28 | static 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 | ||
35 | static inline int tda8290_attach(struct tuner *t) | 34 | static 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 | |||
42 | static 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__); |