Skip to content

Commit cf73369

Browse files
Umang Jainpopcornmix
Umang Jain
authored andcommitted
media: imx335: Use correct register width for HNUM
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 <[email protected]>
1 parent d22af73 commit cf73369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/i2c/imx335.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#define IMX335_REG_CPWAIT_TIME CCI_REG8(0x300d)
3232
#define IMX335_REG_WINMODE CCI_REG8(0x3018)
3333
#define IMX335_REG_HTRIMMING_START CCI_REG16_LE(0x302c)
34-
#define IMX335_REG_HNUM CCI_REG8(0x302e)
34+
#define IMX335_REG_HNUM CCI_REG16_LE(0x302e)
3535

3636
/* Lines per frame */
3737
#define IMX335_REG_VMAX CCI_REG24_LE(0x3030)

0 commit comments

Comments
 (0)