提交 3b364b8d 编写于 作者: A Andreas Mohr 提交者: Linus Torvalds

[PATCH] constify parts of kernel/power/

Signed-off-by: NAndreas Mohr <andi@lisas.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 43b0bc00
...@@ -231,7 +231,7 @@ static int software_resume(void) ...@@ -231,7 +231,7 @@ static int software_resume(void)
late_initcall(software_resume); late_initcall(software_resume);
static char * pm_disk_modes[] = { static const char * const pm_disk_modes[] = {
[PM_DISK_FIRMWARE] = "firmware", [PM_DISK_FIRMWARE] = "firmware",
[PM_DISK_PLATFORM] = "platform", [PM_DISK_PLATFORM] = "platform",
[PM_DISK_SHUTDOWN] = "shutdown", [PM_DISK_SHUTDOWN] = "shutdown",
......
...@@ -145,7 +145,7 @@ static void suspend_finish(suspend_state_t state) ...@@ -145,7 +145,7 @@ static void suspend_finish(suspend_state_t state)
static char *pm_states[PM_SUSPEND_MAX] = { static const char * const pm_states[PM_SUSPEND_MAX] = {
[PM_SUSPEND_STANDBY] = "standby", [PM_SUSPEND_STANDBY] = "standby",
[PM_SUSPEND_MEM] = "mem", [PM_SUSPEND_MEM] = "mem",
#ifdef CONFIG_SOFTWARE_SUSPEND #ifdef CONFIG_SOFTWARE_SUSPEND
...@@ -262,7 +262,7 @@ static ssize_t state_show(struct subsystem * subsys, char * buf) ...@@ -262,7 +262,7 @@ static ssize_t state_show(struct subsystem * subsys, char * buf)
static ssize_t state_store(struct subsystem * subsys, const char * buf, size_t n) static ssize_t state_store(struct subsystem * subsys, const char * buf, size_t n)
{ {
suspend_state_t state = PM_SUSPEND_STANDBY; suspend_state_t state = PM_SUSPEND_STANDBY;
char ** s; const char * const *s;
char *p; char *p;
int error; int error;
int len; int len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册