提交 5cd6bc68 编写于 作者: A Arvind Yadav 提交者: Shawn Guo

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: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NShawn Guo <shawnguo@kernel.org>
上级 2bd6bf03
...@@ -30,7 +30,7 @@ static int mxs_suspend_enter(suspend_state_t state) ...@@ -30,7 +30,7 @@ static int mxs_suspend_enter(suspend_state_t state)
return 0; return 0;
} }
static struct platform_suspend_ops mxs_suspend_ops = { static const struct platform_suspend_ops mxs_suspend_ops = {
.enter = mxs_suspend_enter, .enter = mxs_suspend_enter,
.valid = suspend_valid_only_mem, .valid = suspend_valid_only_mem,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册