From 75a9f98c8f417dd17b8ab2c69f09039620dbd6db Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Fri, 9 Oct 2026 14:15:05 +0200 Subject: [PATCH] dt-bindings: arm: ux500: Drop NR_DOMAINS Keep the internal Ux500 PM domain count local to the only driver that uses it. Do not expose this implementation detail through the DT binding header. Assisted-by: LLM Suggested-by: Krzysztof Kozlowski Acked-by: Krzysztof Kozlowski Signed-off-by: Linus Walleij Signed-off-by: Ulf Hansson --- drivers/pmdomain/st/ste-ux500-pm-domain.c | 2 ++ include/dt-bindings/arm/ux500_pm_domains.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pmdomain/st/ste-ux500-pm-domain.c b/drivers/pmdomain/st/ste-ux500-pm-domain.c index 6896cb4a7b71..c9129a3b1805 100644 --- a/drivers/pmdomain/st/ste-ux500-pm-domain.c +++ b/drivers/pmdomain/st/ste-ux500-pm-domain.c @@ -17,6 +17,8 @@ #include +#define NR_DOMAINS (DOMAIN_VAPE + 1) + static int pd_power_off(struct generic_pm_domain *domain) { /* diff --git a/include/dt-bindings/arm/ux500_pm_domains.h b/include/dt-bindings/arm/ux500_pm_domains.h index 9bd764f0c9e6..9d94801d8b89 100644 --- a/include/dt-bindings/arm/ux500_pm_domains.h +++ b/include/dt-bindings/arm/ux500_pm_domains.h @@ -9,7 +9,5 @@ #define DOMAIN_VAPE 0 -/* Number of PM domains. */ -#define NR_DOMAINS (DOMAIN_VAPE + 1) #endif