mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-08 22:16:29 -04:00
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 <umang.jain@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Fixes: 8f0926dba7 ("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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user