diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-25 08:55:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-25 14:10:40 -0400 |
commit | 383730c36419b85233fe2b5081253a2181160d17 (patch) | |
tree | 07baa321469ad5473620c751a3d23dc58623b3d1 /drivers/media/v4l2-core | |
parent | 106cf649d06c55b881cf4eadf2ca1a28a04d93aa (diff) |
[media] tuner-core: return afc instead of zero
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>
Diffstat (limited to 'drivers/media/v4l2-core')
-rw-r--r-- | drivers/media/v4l2-core/tuner-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/tuner-core.c b/drivers/media/v4l2-core/tuner-core.c index dd8a803fb111..5e18f4401801 100644 --- a/drivers/media/v4l2-core/tuner-core.c +++ b/drivers/media/v4l2-core/tuner-core.c | |||
@@ -235,7 +235,7 @@ static int fe_get_afc(struct dvb_frontend *fe) | |||
235 | if (fe->ops.tuner_ops.get_afc) | 235 | if (fe->ops.tuner_ops.get_afc) |
236 | fe->ops.tuner_ops.get_afc(fe, &afc); | 236 | fe->ops.tuner_ops.get_afc(fe, &afc); |
237 | 237 | ||
238 | return 0; | 238 | return afc; |
239 | } | 239 | } |
240 | 240 | ||
241 | static int fe_set_config(struct dvb_frontend *fe, void *priv_cfg) | 241 | static int fe_set_config(struct dvb_frontend *fe, void *priv_cfg) |