media: i2c: imx290: Support variable-sized registers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 16 Oct 2022 06:15:11 +0000 (09:15 +0300)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 27 Oct 2022 11:38:01 +0000 (14:38 +0300)
commite70abe881463379ef9ab63c09300a5f3651cf9ee
tree20c10554688b6f6180f712c0a4fb4ff79302727e
parent72825bc6f7f5e75c89e678728c785c5925f4ea7d
media: i2c: imx290: Support variable-sized registers

The IMX290 has registers of different sizes. To simplify the code,
handle this in the read/write functions instead of in the callers by
encoding the register size in the symbolic name macros. All registers
are defined as 8-bit for now, a subsequent change will move to larger
registers where applicable.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/media/i2c/imx290.c