]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mach-k3: *: dev-data: Update to use ARRAY_SIZE
authorNishanth Menon <nm@ti.com>
Thu, 13 Jul 2023 19:36:34 +0000 (14:36 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 21 Jul 2023 19:32:12 +0000 (15:32 -0400)
commitd50f82815d473e6d78cca458d4a8648ae65dd5e4
treed475bf9b4048e7d30f8a2cd29b9fe8d7c518ee1a
parent11626a33fadc32f1315a7b1c278a5d96257537b5
arm: mach-k3: *: dev-data: Update to use ARRAY_SIZE

Instead of hard-coding the count of entries manually, use ARRAY_SIZE
to keep the count updates appropriately.

Cc: Bryan Brattlof <bb@ti.com>
Suggested-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
arch/arm/mach-k3/am62ax/dev-data.c
arch/arm/mach-k3/am62x/dev-data.c
arch/arm/mach-k3/j7200/dev-data.c
arch/arm/mach-k3/j721e/dev-data.c
arch/arm/mach-k3/j721s2/dev-data.c