From cf90870454990c54a754c5b2e9ca2e4277ab9b2d Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Tue, 24 Apr 2018 04:24:08 -0400 Subject: 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 Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- drivers/media/i2c/imx274.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/media') 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 -- cgit v1.2.3