]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: domain: ti: use IS_ENABLED macro
authorBryan Brattlof <bb@ti.com>
Tue, 12 Mar 2024 20:20:20 +0000 (15:20 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 13 Mar 2024 14:10:04 +0000 (10:10 -0400)
Cleanup this list and standardize on using the IS_ENABLED macro for the
power domain data list.

Reviewed-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Signed-off-by: Bryan Brattlof <bb@ti.com>
drivers/power/domain/ti-power-domain.c

index fb4ca2dd6b45fc7f9588648fb1343d94f2201863..8fa9892c02c7a88730f5fa26d865ab9e64e80374 100644 (file)
@@ -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,