From f89a72c02b2dda2dada85d38e94217d999b5cde8 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 21 Jun 2012 14:49:06 +0200 Subject: sensor: Fix omap3_isp_sensor_get_exposure() The function tried to set the control instead of getting it. Fix this. Signed-off-by: Laurent Pinchart --- isp/controls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isp/controls.c b/isp/controls.c index b189f7b..cce4265 100644 --- a/isp/controls.c +++ b/isp/controls.c @@ -351,7 +351,7 @@ int omap3_isp_sensor_get_exposure(struct omap3_isp_device *isp, ctrls[0].id = V4L2_CID_EXPOSURE; - ret = v4l2_subdev_set_controls(isp->sensor.entity, ARRAY_SIZE(ctrls), ctrls); + ret = v4l2_subdev_get_controls(isp->sensor.entity, ARRAY_SIZE(ctrls), ctrls); if (ret < 0) return ret; -- cgit v1.2.3