diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-28 08:50:21 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-28 08:50:21 -0500 |
commit | 5c7b0a4903598f353459c8f2101e7f0023d3e8af (patch) | |
tree | c6454f1d9763bf84c83ffb894b08cc24ded26484 /linux/drivers/media/video/tuner-core.c | |
parent | cf7557e23cb16338cdbcfa4075ff34ebf2ba0ca5 (diff) | |
download | mediapointer-dvb-s2-5c7b0a4903598f353459c8f2101e7f0023d3e8af.tar.gz mediapointer-dvb-s2-5c7b0a4903598f353459c8f2101e7f0023d3e8af.tar.bz2 |
tuner: move tuner type ID check to simple_tuner_attach
From: Michael Krufky <mkrufky@linuxtv.org>
Move tuner type ID check from tuner-core::set_type to simple_tuner_attach.
Since tuner-core forwards all attach requests to tuner-simple as the
default case, unless a specific attach function is specified in
set_type, this change is an appropriate cleanup.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index 95bb41cee..c35528799 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -381,11 +381,6 @@ static void set_type(struct i2c_client *c, unsigned int type, return; } - if (type >= tuner_count) { - tuner_warn ("tuner 0x%02x: Tuner count greater than %d\n",c->addr,tuner_count); - return; - } - t->type = type; t->config = new_config; if (tuner_callback != NULL) { |