summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/imx274.c
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2018-04-24 11:24:08 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-17 13:22:08 +0300
commitcf90870454990c54a754c5b2e9ca2e4277ab9b2d (patch)
tree780361a72d8cbc249c910879ed4c93fd3200a9ae /drivers/media/i2c/imx274.c
parent013433919ae8b7cc9566c125845bbce2e09bbaf0 (diff)
downloadlinux-cf90870454990c54a754c5b2e9ca2e4277ab9b2d.tar.xz
media: imx274: slightly simplify code
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>
Diffstat (limited to 'drivers/media/i2c/imx274.c')
-rw-r--r--drivers/media/i2c/imx274.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx274.c b/drivers/media/i2c/imx274.c
index dfd04edcdd48..c5d00ade4d64 100644
--- a/drivers/media/i2c/imx274.c
+++ b/drivers/media/i2c/imx274.c
@@ -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