diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-24 14:05:39 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:04:23 -0500 |
commit | 67d52e29032dd2f21d4080331f47a21205f337f6 (patch) | |
tree | 0503e4c5d82f92536054cf68544e66f3f33a0a71 | |
parent | de7234bb05a8498c5092385d3f1dd9e73cd332d0 (diff) |
V4L/DVB (6920): tuner: fix backwards logic in check for set_config
tuner-core was checking if analog_ops->set_config is set. If set, it would
complain that it isn't. Fix this backwards logic to the proper behavior.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/tuner-core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index f792871582ff..67b9ed1ac71a 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -855,12 +855,11 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg) | |||
855 | break; | 855 | break; |
856 | 856 | ||
857 | if (analog_ops->set_config) { | 857 | if (analog_ops->set_config) { |
858 | tuner_warn("Tuner frontend module has no way to " | 858 | analog_ops->set_config(&t->fe, cfg->priv); |
859 | "set config\n"); | ||
860 | break; | 859 | break; |
861 | } | 860 | } |
862 | 861 | ||
863 | analog_ops->set_config(&t->fe, cfg->priv); | 862 | tuner_dbg("Tuner frontend module has no way to set config\n"); |
864 | break; | 863 | break; |
865 | } | 864 | } |
866 | /* --- v4l ioctls --- */ | 865 | /* --- v4l ioctls --- */ |