diff options
author | Nishanth Menon <nm@ti.com> | 2023-07-13 14:36:34 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-21 15:32:12 -0400 |
commit | d50f82815d473e6d78cca458d4a8648ae65dd5e4 (patch) | |
tree | d475bf9b4048e7d30f8a2cd29b9fe8d7c518ee1a /arch/arm/mach-k3/j721s2/dev-data.c | |
parent | 11626a33fadc32f1315a7b1c278a5d96257537b5 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-k3/j721s2/dev-data.c')
-rw-r--r-- | arch/arm/mach-k3/j721s2/dev-data.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-k3/j721s2/dev-data.c b/arch/arm/mach-k3/j721s2/dev-data.c index 35e8b17eb1e..8c999a3c5a8 100644 --- a/arch/arm/mach-k3/j721s2/dev-data.c +++ b/arch/arm/mach-k3/j721s2/dev-data.c @@ -79,8 +79,8 @@ const struct ti_k3_pd_platdata j721s2_pd_platdata = { .pd = soc_pd_list, .lpsc = soc_lpsc_list, .devs = soc_dev_list, - .num_psc = 2, - .num_pd = 6, - .num_lpsc = 19, - .num_devs = 25, + .num_psc = ARRAY_SIZE(soc_psc_list), + .num_pd = ARRAY_SIZE(soc_pd_list), + .num_lpsc = ARRAY_SIZE(soc_lpsc_list), + .num_devs = ARRAY_SIZE(soc_dev_list), }; |