diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-10-16 09:15:07 +0300 |
|---|---|---|
| committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2022-10-27 14:38:00 +0300 |
| commit | 2548df538cdd39b52976545a94529c9b81671a41 (patch) | |
| tree | cacf810a3ccd760b1d2af527aad31107d1245058 /tools/perf/scripts/python/stackcollapse.py | |
| parent | fbe0a89dc7e32a38904da0c149150b52ccf44279 (diff) | |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
