From: Philipp Zabel
Date: Sun, 17 Jan 2016 14:14:32 +0000 (+0100)
Subject: reset: sunxi: Make reset_control_ops const
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=01501d57302a39b46a308b6499a7095f9096a104;p=linux.git
reset: sunxi: Make reset_control_ops const
The sunxi_reset_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel
Acked-by: Maxime Ripard
---
diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c
index 8d41a18da17f6..677f865552125 100644
--- a/drivers/reset/reset-sunxi.c
+++ b/drivers/reset/reset-sunxi.c
@@ -70,7 +70,7 @@ static int sunxi_reset_deassert(struct reset_controller_dev *rcdev,
return 0;
}
-static struct reset_control_ops sunxi_reset_ops = {
+static const struct reset_control_ops sunxi_reset_ops = {
.assert = sunxi_reset_assert,
.deassert = sunxi_reset_deassert,
};