diff mbox series

[v2,02/13] power: domain: ti: use IS_ENABLED macro

Message ID 20240201030634.1120963-19-bb@ti.com
State Superseded
Delegated to: Tom Rini
Headers show
Series [v2,01/13] soc: add info to identify the am62p SoC family | expand

Commit Message

Bryan Brattlof Feb. 1, 2024, 3:06 a.m. UTC
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>
---
 drivers/power/domain/ti-power-domain.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comments

Igor Opaniuk Feb. 1, 2024, 2:46 p.m. UTC | #1
On Thu, Feb 1, 2024 at 4:07 AM Bryan Brattlof <bb@ti.com> wrote:
>
> 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>
> ---
>  drivers/power/domain/ti-power-domain.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/power/domain/ti-power-domain.c b/drivers/power/domain/ti-power-domain.c
> index b34c982f4f5fa..dc5d74539edcf 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,
> --
> 2.43.0
>

Reviewed-by: Igor Opaniuk <igor.opaniuk@foundries.io>
diff mbox series

Patch

diff --git a/drivers/power/domain/ti-power-domain.c b/drivers/power/domain/ti-power-domain.c
index b34c982f4f5fa..dc5d74539edcf 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,