aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Brattlof <bb@ti.com>2024-01-31 21:06:38 -0600
committerTom Rini <trini@konsulko.com>2024-02-02 12:55:58 -0500
commit2a9ae7e148d883d23d7675e4f2f7a8bdce20f8d0 (patch)
tree177304b53ace6fc887f0a82779272a0fc2916707
parentd31061496f7398c7826b5bd80edeb7c5be024d51 (diff)
downloadu-boot-2a9ae7e148d883d23d7675e4f2f7a8bdce20f8d0.zip
u-boot-2a9ae7e148d883d23d7675e4f2f7a8bdce20f8d0.tar.gz
u-boot-2a9ae7e148d883d23d7675e4f2f7a8bdce20f8d0.tar.bz2
power: domain: ti: use IS_ENABLED macro
Cleanup this list and standardize on using the IS_ENABLED macro for the power domain data list. Signed-off-by: Bryan Brattlof <bb@ti.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@foundries.io>
-rw-r--r--drivers/power/domain/ti-power-domain.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/power/domain/ti-power-domain.c b/drivers/power/domain/ti-power-domain.c
index b34c982..dc5d745 100644
--- a/drivers/power/domain/ti-power-domain.c
+++ b/drivers/power/domain/ti-power-domain.c
@@ -81,19 +81,20 @@ static const struct soc_attr ti_k3_soc_pd_data[] = {
.family = "J7200",
.data = &j7200_pd_platdata,
},
-#elif CONFIG_SOC_K3_J721S2
+#endif
+#if IS_ENABLED(CONFIG_SOC_K3_J721S2)
{
.family = "J721S2",
.data = &j721s2_pd_platdata,
},
#endif
-#ifdef CONFIG_SOC_K3_AM625
+#if IS_ENABLED(CONFIG_SOC_K3_AM625)
{
.family = "AM62X",
.data = &am62x_pd_platdata,
},
#endif
-#ifdef CONFIG_SOC_K3_AM62A7
+#if IS_ENABLED(CONFIG_SOC_K3_AM62A7)
{
.family = "AM62AX",
.data = &am62ax_pd_platdata,