mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
@@ -66,8 +66,8 @@ const struct ti_k3_pd_platdata am62ax_pd_platdata = {
|
||||
.pd = soc_pd_list,
|
||||
.lpsc = soc_lpsc_list,
|
||||
.devs = soc_dev_list,
|
||||
.num_psc = 2,
|
||||
.num_pd = 4,
|
||||
.num_lpsc = 14,
|
||||
.num_devs = 19,
|
||||
.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),
|
||||
};
|
||||
|
||||
@@ -71,8 +71,8 @@ const struct ti_k3_pd_platdata am62x_pd_platdata = {
|
||||
.pd = soc_pd_list,
|
||||
.lpsc = soc_lpsc_list,
|
||||
.devs = soc_dev_list,
|
||||
.num_psc = 2,
|
||||
.num_pd = 5,
|
||||
.num_lpsc = 16,
|
||||
.num_devs = 21,
|
||||
.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),
|
||||
};
|
||||
|
||||
@@ -75,8 +75,8 @@ const struct ti_k3_pd_platdata j7200_pd_platdata = {
|
||||
.pd = soc_pd_list,
|
||||
.lpsc = soc_lpsc_list,
|
||||
.devs = soc_dev_list,
|
||||
.num_psc = 2,
|
||||
.num_pd = 6,
|
||||
.num_lpsc = 17,
|
||||
.num_devs = 23,
|
||||
.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),
|
||||
};
|
||||
|
||||
@@ -73,8 +73,8 @@ const struct ti_k3_pd_platdata j721e_pd_platdata = {
|
||||
.pd = soc_pd_list,
|
||||
.lpsc = soc_lpsc_list,
|
||||
.devs = soc_dev_list,
|
||||
.num_psc = 2,
|
||||
.num_pd = 5,
|
||||
.num_lpsc = 16,
|
||||
.num_devs = 23,
|
||||
.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),
|
||||
};
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user