Skip to content

Commit

Permalink
V4L/DVB (6920): tuner: fix backwards logic in check for set_config
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent de7234b commit 67d52e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 --- */
Expand Down

0 comments on commit 67d52e2

Please sign in to comment.