Skip to content

Commit 1877d3f

Browse files
lumagUlf Hansson
authored andcommitted
PM: domains: De-constify fields in struct dev_pm_domain_attach_data
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: 161e16a ("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>
1 parent 6de23f8 commit 1877d3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/pm_domain.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949

5050
struct dev_pm_domain_attach_data {
5151
const char * const *pd_names;
52-
const u32 num_pd_names;
53-
const u32 pd_flags;
52+
u32 num_pd_names;
53+
u32 pd_flags;
5454
};
5555

5656
struct dev_pm_domain_list {

0 commit comments

Comments
 (0)