V4L/DVB (6920): tuner: fix backwards logic in check for set_config
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 24 Dec 2007 19:05:39 +0000 (16:05 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:23 +0000 (19:04 -0200)
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>
drivers/media/video/tuner-core.c

index f792871..67b9ed1 100644 (file)
@@ -855,12 +855,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 --- */