diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-24 14:05:39 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-24 14:05:39 -0500 |
commit | 41cbf1277f97ec6018dfc1e878e476298abd6b6a (patch) | |
tree | e2fd07c5fb1ae1a9b3d7fadd3baf5d33ba3c845c /linux/drivers/media/video/tuner-core.c | |
parent | be68ef6b27b2753589d39ac398ac1313c5199998 (diff) | |
download | mediapointer-dvb-s2-41cbf1277f97ec6018dfc1e878e476298abd6b6a.tar.gz mediapointer-dvb-s2-41cbf1277f97ec6018dfc1e878e476298abd6b6a.tar.bz2 |
tuner: fix backwards logic in check for set_config
From: Michael Krufky <mkrufky@linuxtv.org>
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>
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index c81e7e581..f6608f1b2 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -899,12 +899,11 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg) break; if (analog_ops->set_config) { - tuner_warn("Tuner frontend module has no way to " - "set config\n"); + analog_ops->set_config(&t->fe, cfg->priv); break; } - analog_ops->set_config(&t->fe, cfg->priv); + tuner_dbg("Tuner frontend module has no way to set config\n"); break; } /* --- v4l ioctls --- */ |