[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20231211125950.108092-7-umang.jain@ideasonboard.com>
Date: Mon, 11 Dec 2023 18:29:48 +0530
From: Umang Jain <umang.jain@...asonboard.com>
To: devicetree@...r.kernel.org, linux-media@...r.kernel.org
Cc: "Paul J . Murphy" <paul.j.murphy@...el.com>,
Daniele Alessandrelli <daniele.alessandrelli@...el.com>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Kieran Bingham <kieran.bingham@...asonboard.com>,
Umang Jain <umang.jain@...asonboard.com>,
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH v4 6/7] media: i2c: imx335: Fix hblank min/max values
From: Kieran Bingham <kieran.bingham@...asonboard.com>
The V4L2_CID_HBLANK control is marked as readonly and can only be a
single value.
Set the minimum and maximum value to match the mode value.
Reviewed-by: Umang Jain <umang.jain@...asonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@...asonboard.com>
---
drivers/media/i2c/imx335.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/imx335.c b/drivers/media/i2c/imx335.c
index a924b7222ca3..f353647a0d4e 100644
--- a/drivers/media/i2c/imx335.c
+++ b/drivers/media/i2c/imx335.c
@@ -1043,8 +1043,8 @@ static int imx335_init_controls(struct imx335 *imx335)
imx335->hblank_ctrl = v4l2_ctrl_new_std(ctrl_hdlr,
&imx335_ctrl_ops,
V4L2_CID_HBLANK,
- IMX335_REG_MIN,
- IMX335_REG_MAX,
+ mode->hblank,
+ mode->hblank,
1, mode->hblank);
if (imx335->hblank_ctrl)
imx335->hblank_ctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY;
--
2.41.0
Powered by blists - more mailing lists