summaryrefslogtreecommitdiffstats
path: root/drivers/reset
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2016-01-17 15:15:13 +0100
committerPhilipp Zabel <p.zabel@pengutronix.de>2016-02-10 10:53:38 +0100
commitf673ed4d5fdc123b1552525de30741cd8dfde53f (patch)
treedceed95e26b42edeab8eeb863f2877b85556a8a5 /drivers/reset
parentreset: zynq: Make reset_control_ops const (diff)
downloadlinux-f673ed4d5fdc123b1552525de30741cd8dfde53f.tar.xz
linux-f673ed4d5fdc123b1552525de30741cd8dfde53f.zip
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@pengutronix.de>
Diffstat (limited to 'drivers/reset')
-rw-r--r--drivers/reset/sti/reset-syscfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/sti/reset-syscfg.c b/drivers/reset/sti/reset-syscfg.c
index 1600cc7557f5..9bd57a5eee72 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,