Thread (32 messages) 32 messages, 5 authors, 2026-02-04
STALE164d

[PATCH v2 2/8] pmdomain: de-constify fields struct dev_pm_domain_attach_data

From: Dmitry Baryshkov <hidden>
Date: 2026-02-01 10:49:16
Also in: linux-arm-msm, linux-clk, linux-media, linux-pm, lkml
Subsystem: generic pm domains, power management core, the rest · Maintainers: Ulf Hansson, "Rafael J. Wysocki", Linus Torvalds

It doesn't really make sense to keep u32 fields to be marked as const.
Having the const fields prevents their modification in the driver.
Instead the whole struct can be defined as const (if it is constant).

Fixes: 161e16a5e50a ("PM: domains: Add helper functions to attach/detach multiple PM domains")
Signed-off-by: Dmitry Baryshkov <redacted>
---
 include/linux/pm_domain.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index f6f6d494f728..b299dc0128d6 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -49,8 +49,8 @@
 
 struct dev_pm_domain_attach_data {
 	const char * const *pd_names;
-	const u32 num_pd_names;
-	const u32 pd_flags;
+	u32 num_pd_names;
+	u32 pd_flags;
 };
 
 struct dev_pm_domain_list {
-- 
2.47.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help