[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1454938135-9895-1-git-send-email-p.zabel@pengutronix.de>
Date: Mon, 8 Feb 2016 14:28:55 +0100
From: Philipp Zabel <p.zabel@...gutronix.de>
To: linux-kernel@...r.kernel.org
Cc: Stephen Gallimore <stephen.gallimore@...com>,
Srinivas Kandagatla <srinivas.kandagatla@...com>,
Philipp Zabel <p.zabel@...gutronix.de>
Subject: [PATCH] reset: sti: Make reset_control_ops const
The syscfg_reset_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel <p.zabel@...gutronix.de>
---
drivers/reset/sti/reset-syscfg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/reset/sti/reset-syscfg.c b/drivers/reset/sti/reset-syscfg.c
index 1600cc7..9bd57a5 100644
--- a/drivers/reset/sti/reset-syscfg.c
+++ b/drivers/reset/sti/reset-syscfg.c
@@ -134,7 +134,7 @@ static int syscfg_reset_status(struct reset_controller_dev *rcdev,
return rst->active_low ? !ret_val : !!ret_val;
}
-static struct reset_control_ops syscfg_reset_ops = {
+static const struct reset_control_ops syscfg_reset_ops = {
.reset = syscfg_reset_dev,
.assert = syscfg_reset_assert,
.deassert = syscfg_reset_deassert,
--
2.7.0.rc3
Powered by blists - more mailing lists