* [PATCH 0/2] ARM: Make reset_control_ops const
@ 2016-02-25 9:44 Philipp Zabel
2016-02-25 9:44 ` [PATCH 1/2] ARM: imx: " Philipp Zabel
2016-02-25 9:44 ` [PATCH 2/2] ARM: sirf: " Philipp Zabel
0 siblings, 2 replies; 4+ messages in thread
From: Philipp Zabel @ 2016-02-25 9:44 UTC (permalink / raw)
To: linux-arm-kernel
Since commit 203d4f347d86 ("reset: Make reset_control_ops const") marked
the ops pointer in struct reset_controller_dev as const, these structs
can be made const, too. The commit is currently sitting in the
arm-soc/for-next branch.
regards
Philipp
Philipp Zabel (2):
ARM: imx: Make reset_control_ops const
ARM: sirf: Make reset_control_ops const
arch/arm/mach-imx/src.c | 2 +-
arch/arm/mach-prima2/rstc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
2.7.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: imx: Make reset_control_ops const
2016-02-25 9:44 [PATCH 0/2] ARM: Make reset_control_ops const Philipp Zabel
@ 2016-02-25 9:44 ` Philipp Zabel
2016-02-29 2:38 ` Shawn Guo
2016-02-25 9:44 ` [PATCH 2/2] ARM: sirf: " Philipp Zabel
1 sibling, 1 reply; 4+ messages in thread
From: Philipp Zabel @ 2016-02-25 9:44 UTC (permalink / raw)
To: linux-arm-kernel
The imx_src_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
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,
};
--
2.7.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: sirf: Make reset_control_ops const
2016-02-25 9:44 [PATCH 0/2] ARM: Make reset_control_ops const Philipp Zabel
2016-02-25 9:44 ` [PATCH 1/2] ARM: imx: " Philipp Zabel
@ 2016-02-25 9:44 ` Philipp Zabel
1 sibling, 0 replies; 4+ messages in thread
From: Philipp Zabel @ 2016-02-25 9:44 UTC (permalink / raw)
To: linux-arm-kernel
The sirfsoc_rstc_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
arch/arm/mach-prima2/rstc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-prima2/rstc.c b/arch/arm/mach-prima2/rstc.c
index 7c251eb..1cdb6167 100644
--- a/arch/arm/mach-prima2/rstc.c
+++ b/arch/arm/mach-prima2/rstc.c
@@ -54,7 +54,7 @@ static int sirfsoc_reset_module(struct reset_controller_dev *rcdev,
return 0;
}
-static struct reset_control_ops sirfsoc_rstc_ops = {
+static const struct reset_control_ops sirfsoc_rstc_ops = {
.reset = sirfsoc_reset_module,
};
--
2.7.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: imx: Make reset_control_ops const
2016-02-25 9:44 ` [PATCH 1/2] ARM: imx: " Philipp Zabel
@ 2016-02-29 2:38 ` Shawn Guo
0 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2016-02-29 2:38 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 25, 2016 at 10:44:41AM +0100, Philipp Zabel wrote:
> The imx_src_ops structure is never modified. Make it const.
>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-29 2:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25 9:44 [PATCH 0/2] ARM: Make reset_control_ops const Philipp Zabel
2016-02-25 9:44 ` [PATCH 1/2] ARM: imx: " Philipp Zabel
2016-02-29 2:38 ` Shawn Guo
2016-02-25 9:44 ` [PATCH 2/2] ARM: sirf: " Philipp Zabel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).