media: i2c: imx290: Replace macro with explicit ARRAY_SIZE()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 16 Oct 2022 06:15:07 +0000 (09:15 +0300)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 27 Oct 2022 11:38:00 +0000 (14:38 +0300)
commit2548df538cdd39b52976545a94529c9b81671a41
treecacf810a3ccd760b1d2af527aad31107d1245058
parentfbe0a89dc7e32a38904da0c149150b52ccf44279
media: i2c: imx290: Replace macro with explicit ARRAY_SIZE()

Use ARRAY_SIZE(imx290->supplies) for code that needs the size of the
array, instead of relying on the IMX290_NUM_SUPPLIES. The result is less
error-prone as it ties the size to the array.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/media/i2c/imx290.c