[media] tuner-core: return afc instead of zero
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 12:55:57 +0000 (09:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 18:10:40 +0000 (15:10 -0300)
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>
drivers/media/v4l2-core/tuner-core.c

index dd8a803fb111740ed34e075f2e1efe4981d7b67c..5e18f4401801ce46eeaf3a981b5808c30f4bb469 100644 (file)
@@ -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)