diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2017-06-12 17:19:31 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-06-28 00:27:14 +0200 |
commit | 952856db9019f914227f5fbe24f7810e20fec0fd (patch) | |
tree | 5b826f9a563c70af459056894c689fa512510bdd /drivers/base/power/main.c | |
parent | PM / wakeirq: Convert to SRCU (diff) | |
download | linux-952856db9019f914227f5fbe24f7810e20fec0fd.tar.xz linux-952856db9019f914227f5fbe24f7810e20fec0fd.zip |
PM: Constify returned PM event name
The pm_verb() returns a pointer to string from .rodata so it should be
marked as const.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/main.c')
-rw-r--r-- | drivers/base/power/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 9faee1c893e5..924a5ba7aa27 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -62,7 +62,7 @@ static pm_message_t pm_transition; static int async_error; -static char *pm_verb(int event) +static const char *pm_verb(int event) { switch (event) { case PM_EVENT_SUSPEND: |