From patchwork Thu Feb 25 09:44:41 2016
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philipp Zabel
X-Patchwork-Id: 587998
Return-Path:
X-Original-To: incoming-imx@patchwork.ozlabs.org
Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org
Received: from bombadil.infradead.org (bombadil.infradead.org
[IPv6:2001:1868:205::9])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128
bits)) (No client certificate requested)
by ozlabs.org (Postfix) with ESMTPS id 998E61402EC
for ;
Thu, 25 Feb 2016 20:47:21 +1100 (AEDT)
Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))
id 1aYsUH-00071s-Hi; Thu, 25 Feb 2016 09:45:33 +0000
Received: from metis.ext.pengutronix.de
([2001:67c:670:201:290:27ff:fe1d:cc33])
by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat
Linux)) id 1aYsTv-0005fA-FU
for linux-arm-kernel@lists.infradead.Org;
Thu, 25 Feb 2016 09:45:12 +0000
Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]
helo=dude.pengutronix.de.)
by metis.ext.pengutronix.de with esmtp (Exim 4.80)
(envelope-from )
id 1aYsTZ-0000zR-J3; Thu, 25 Feb 2016 10:44:49 +0100
From: Philipp Zabel
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: imx: Make reset_control_ops const
Date: Thu, 25 Feb 2016 10:44:41 +0100
Message-Id: <1456393482-26318-2-git-send-email-p.zabel@pengutronix.de>
X-Mailer: git-send-email 2.7.0
In-Reply-To: <1456393482-26318-1-git-send-email-p.zabel@pengutronix.de>
References: <1456393482-26318-1-git-send-email-p.zabel@pengutronix.de>
X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7
X-SA-Exim-Mail-From: p.zabel@pengutronix.de
X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de);
SAEximRunCond expanded to false
X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20160225_014511_731014_D5665912
X-CRM114-Status: UNSURE ( 9.59 )
X-CRM114-Notice: Please train this message.
X-Spam-Score: -1.9 (-)
X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary:
Content analysis details: (-1.9 points)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
domain
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-BeenThere: linux-arm-kernel@lists.infradead.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Unsubscribe:
,
List-Archive:
List-Post:
List-Help:
List-Subscribe:
,
Cc: Russell King , Barry Song ,
Shawn Guo , Philipp Zabel ,
kernel@pengutronix.de
MIME-Version: 1.0
Sender: "linux-arm-kernel"
Errors-To:
linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org
List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org
The imx_src_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel
---
arch/arm/mach-imx/src.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
};