]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: imx335: Use correct register width for HNUM
authorUmang Jain <umang.jain@ideasonboard.com>
Tue, 22 Apr 2025 12:20:52 +0000 (13:20 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 6 May 2025 11:05:14 +0000 (13:05 +0200)
CCI_REG_HNUM should be using CCI_REG16_LE() instead of CCI_REG8()
as HNUM spans from 0x302e[0:7] to 0x302f[0:3].

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Fixes: 8f0926dba799 ("media: imx335: Use V4L2 CCI for accessing sensor registers")
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/imx335.c

index 0beb80b8c4581548fdc64a4822a7298c9ee524b4..d400a019f6b3f4555cdc721480b7985e5613cb5c 100644 (file)
@@ -31,7 +31,7 @@
 #define IMX335_REG_CPWAIT_TIME         CCI_REG8(0x300d)
 #define IMX335_REG_WINMODE             CCI_REG8(0x3018)
 #define IMX335_REG_HTRIMMING_START     CCI_REG16_LE(0x302c)
-#define IMX335_REG_HNUM                        CCI_REG8(0x302e)
+#define IMX335_REG_HNUM                        CCI_REG16_LE(0x302e)
 
 /* Lines per frame */
 #define IMX335_REG_VMAX                        CCI_REG24_LE(0x3030)