]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: imx335: Rectify name of mode struct
authorUmang Jain <umang.jain@ideasonboard.com>
Thu, 30 Oct 2025 08:42:54 +0000 (14:12 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 13 Nov 2025 09:57:52 +0000 (10:57 +0100)
In commit 81495a59baeb ("media: imx335: Fix active area height
discrepency") the height for the mode struct was rectified to '1944'.
However, the name of mode struct is still reflecting to '1940'. Update
it.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Tommaso Merciai <tomm.merciai@gmail.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/imx335.c

index 71ed9a0d84a252ee362621c4d38001508fb86d28..a03efa7990239553e3965f05b8c5544bed12614f 100644 (file)
@@ -252,7 +252,7 @@ static const int imx335_tpg_val[] = {
 };
 
 /* Sensor mode registers */
-static const struct cci_reg_sequence mode_2592x1940_regs[] = {
+static const struct cci_reg_sequence mode_2592x1944_regs[] = {
        { IMX335_REG_MODE_SELECT, IMX335_MODE_STANDBY },
        { IMX335_REG_MASTER_MODE, 0x00 },
        { IMX335_REG_WINMODE, 0x04 },
@@ -416,8 +416,8 @@ static const struct imx335_mode supported_mode = {
        .vblank_max = 133060,
        .pclk = 396000000,
        .reg_list = {
-               .num_of_regs = ARRAY_SIZE(mode_2592x1940_regs),
-               .regs = mode_2592x1940_regs,
+               .num_of_regs = ARRAY_SIZE(mode_2592x1944_regs),
+               .regs = mode_2592x1944_regs,
        },
 };