Skip to content

Commit

Permalink
[media] tuner-core: return afc instead of zero
Browse files Browse the repository at this point in the history
While the driver gets AFC from the tuner, it doesn't return it
back via V4L2 API due to a mistake at the return. fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Mar 25, 2013
1 parent 106cf64 commit 383730c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/v4l2-core/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static int fe_get_afc(struct dvb_frontend *fe)
if (fe->ops.tuner_ops.get_afc)
fe->ops.tuner_ops.get_afc(fe, &afc);

return 0;
return afc;
}

static int fe_set_config(struct dvb_frontend *fe, void *priv_cfg)
Expand Down

0 comments on commit 383730c

Please sign in to comment.