1
0
Fork 0

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>
hifive-unleashed-5.1
Krzysztof Kozlowski 2017-06-12 17:19:31 +02:00 committed by Rafael J. Wysocki
parent ea0212f40c
commit 952856db90
1 changed files with 1 additions and 1 deletions

View File

@ -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: