diff mbox

[1/2] ARM: imx: Make reset_control_ops const

Message ID 1456393482-26318-2-git-send-email-p.zabel@pengutronix.de
State New
Headers show

Commit Message

Philipp Zabel Feb. 25, 2016, 9:44 a.m. UTC
The imx_src_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 arch/arm/mach-imx/src.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Shawn Guo Feb. 29, 2016, 2:38 a.m. UTC | #1
On Thu, Feb 25, 2016 at 10:44:41AM +0100, Philipp Zabel wrote:
> The imx_src_ops structure is never modified. Make it const.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

Applied, thanks.
diff mbox

Patch

diff --git a/arch/arm/mach-imx/src.c b/arch/arm/mach-imx/src.c
index 45f7f4e..70b083f 100644
--- a/arch/arm/mach-imx/src.c
+++ b/arch/arm/mach-imx/src.c
@@ -73,7 +73,7 @@  static int imx_src_reset_module(struct reset_controller_dev *rcdev,
 	return 0;
 }
 
-static struct reset_control_ops imx_src_ops = {
+static const struct reset_control_ops imx_src_ops = {
 	.reset = imx_src_reset_module,
 };