[PATCH 2/3] dt-bindings: arm: ux500: Drop NR_DOMAINS

From: Linus Walleij

Date: Fri Oct 09 2026 - 08:17:32 EST


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 <krzk@xxxxxxxxxx>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Signed-off-by: Linus Walleij <linusw@xxxxxxxxxx>
---
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 <dt-bindings/arm/ux500_pm_domains.h>

+#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

--
2.55.0