Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: mxs: constify platform_suspend_ops

platform_suspend_ops are not supposed to change at runtime.
Functions suspend_set_ops working with const platform_suspend_ops.
So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Arvind Yadav and committed by
Shawn Guo
5cd6bc68 2bd6bf03

+1 -1
+1 -1
arch/arm/mach-mxs/pm.c
··· 30 30 return 0; 31 31 } 32 32 33 - static struct platform_suspend_ops mxs_suspend_ops = { 33 + static const struct platform_suspend_ops mxs_suspend_ops = { 34 34 .enter = mxs_suspend_enter, 35 35 .valid = suspend_valid_only_mem, 36 36 };