media: imx274: slightly simplify code
authorLuca Ceresoli <luca@lucaceresoli.net>
Tue, 24 Apr 2018 08:24:08 +0000 (04:24 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 17 May 2018 10:22:08 +0000 (06:22 -0400)
imx274_s_frame_interval() already has a direct pointer to the v4l2
exposure control, so reuse it to simplify code.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/imx274.c

index dfd04ed..c5d00ad 100644 (file)
@@ -984,7 +984,7 @@ static int imx274_s_frame_interval(struct v4l2_subdev *sd,
                }
 
                /* update exposure time accordingly */
-               imx274_set_exposure(imx274, imx274->ctrls.exposure->val);
+               imx274_set_exposure(imx274, ctrl->val);
 
                dev_dbg(&imx274->client->dev, "set frame interval to %uus\n",
                        fi->interval.numerator * 1000000