From: Philipp Zabel
Date: Sun, 17 Jan 2016 14:12:23 +0000 (+0100)
Subject: reset: ath79: Make reset_control_ops const
X-Git-Tag: v4.6-rc1~71^2~3^2~4
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2f79f223f931dfadf98c42a9d426999d5e3397c;p=thirdparty%2Fkernel%2Flinux.git
reset: ath79: Make reset_control_ops const
The ath79_reset_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel
Acked-by: Alban Bedel
---
diff --git a/drivers/reset/reset-ath79.c b/drivers/reset/reset-ath79.c
index 692fc890e94ba..ccb940a8d9fb4 100644
--- a/drivers/reset/reset-ath79.c
+++ b/drivers/reset/reset-ath79.c
@@ -70,7 +70,7 @@ static int ath79_reset_status(struct reset_controller_dev *rcdev,
return !!(val & BIT(id));
}
-static struct reset_control_ops ath79_reset_ops = {
+static const struct reset_control_ops ath79_reset_ops = {
.assert = ath79_reset_assert,
.deassert = ath79_reset_deassert,
.status = ath79_reset_status,