]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PM: domains: De-constify fields in struct dev_pm_domain_attach_data
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sun, 1 Feb 2026 10:48:59 +0000 (12:48 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 1 Apr 2026 11:15:48 +0000 (13:15 +0200)
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 <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
include/linux/pm_domain.h

index 93ba0143ca476afc8c801cd5c911084394718f10..38d1814ab8a5ea81a124cc6b3768f2f6853e65d3 100644 (file)
@@ -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 {