瀏覽代碼

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>
Michael Krufky 17 年之前
父節點
當前提交
67d52e2903
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      drivers/media/video/tuner-core.c

+ 2 - 3
drivers/media/video/tuner-core.c

@@ -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 --- */