PM: Constify returned PM event name
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 12 Jun 2017 15:19:31 +0000 (17:19 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 27 Jun 2017 22:27:14 +0000 (00:27 +0200)
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>
drivers/base/power/main.c

index 9faee1c893e53c8dea6e14d472a73a8b7131bf96..924a5ba7aa27cb75622b2d166ca84e5f546520d5 100644 (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: