]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: mxs: constify platform_suspend_ops
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 30 Aug 2017 16:47:51 +0000 (22:17 +0530)
committerShawn Guo <shawnguo@kernel.org>
Wed, 20 Sep 2017 14:21:08 +0000 (22:21 +0800)
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>
arch/arm/mach-mxs/pm.c

index 0170e99fd70fd4c0947fbd4578ccbcad2c312a5e..6ae057c2cf9fe74af3c4d7dca7be6031211fe99e 100644 (file)
@@ -30,7 +30,7 @@ static int mxs_suspend_enter(suspend_state_t state)
        return 0;
 }
 
-static struct platform_suspend_ops mxs_suspend_ops = {
+static const struct platform_suspend_ops mxs_suspend_ops = {
        .enter = mxs_suspend_enter,
        .valid = suspend_valid_only_mem,
 };