From 5af3bbb27bf9dbf0f2de4718d2a01fe2b4993a09 Mon Sep 17 00:00:00 2001 From: Emil Lindqvist Date: Tue, 30 Nov 2021 10:44:30 +0100 Subject: [PATCH] pm: remove irrelevant type qualifier on pm_power_state_next_get The type qualifier of the return type is causing warnings if -Wignored-qualifiers, and it's irrelevant anyways since the function returns a value and not a pointer Signed-off-by: Emil Lindqvist --- include/pm/pm.h | 2 +- subsys/pm/pm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pm/pm.h b/include/pm/pm.h index 9c096d7792c..ae8951cb8ef 100644 --- a/include/pm/pm.h +++ b/include/pm/pm.h @@ -111,7 +111,7 @@ int pm_notifier_unregister(struct pm_notifier *notifier); * @param cpu CPU index. * @return next pm_state_info that will be used */ -const struct pm_state_info pm_power_state_next_get(uint8_t cpu); +struct pm_state_info pm_power_state_next_get(uint8_t cpu); /** * @} diff --git a/subsys/pm/pm.c b/subsys/pm/pm.c index 84784d122f5..0dc09130439 100644 --- a/subsys/pm/pm.c +++ b/subsys/pm/pm.c @@ -294,7 +294,7 @@ int pm_notifier_unregister(struct pm_notifier *notifier) return ret; } -const struct pm_state_info pm_power_state_next_get(uint8_t cpu) +struct pm_state_info pm_power_state_next_get(uint8_t cpu) { return z_power_states[cpu]; }