1 From 07e177363a8c2596740f22a049568cd448d923dd Mon Sep 17 00:00:00 2001
2 From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
3 Date: Sun, 16 Oct 2022 09:15:23 +0300
4 Subject: [PATCH] media: i2c: imx290: Replace GAIN control with
7 Upstream commit 3dd10515a1d9
9 The IMX290 gain register controls the analogue gain. Replace the
10 V4L2_CID_GAIN control with V4L2_CID_ANALOGUE_GAIN.
12 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
13 Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
14 Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
16 drivers/media/i2c/imx290.c | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
19 --- a/drivers/media/i2c/imx290.c
20 +++ b/drivers/media/i2c/imx290.c
21 @@ -524,7 +524,7 @@ static int imx290_set_ctrl(struct v4l2_c
26 + case V4L2_CID_ANALOGUE_GAIN:
27 ret = imx290_write(imx290, IMX290_GAIN, ctrl->val, NULL);
30 @@ -1015,7 +1015,7 @@ static int imx290_ctrl_init(struct imx29
31 * gain control should be adjusted accordingly.
33 v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops,
34 - V4L2_CID_GAIN, 0, 100, 1, 0);
35 + V4L2_CID_ANALOGUE_GAIN, 0, 100, 1, 0);
37 v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops,
38 V4L2_CID_EXPOSURE, 1, IMX290_VMAX_DEFAULT - 2, 1,