]> err.no Git - linux-2.6/commitdiff
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 f792871582ff16566666234f3ece760e2a9059ce..67b9ed1ac71a4accf655822acf1e9597a20c2d47 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 --- */