ARM: Make reset_control_ops const
Subsystems (3)
cover ARM: Make reset_control_ops const
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(-)
Signature · 1 line
2.7.0
PATCH 1/2 ARM: imx: Make reset_control_ops const
The imx_src_ops structure is never modified. Make it const.
Signed-off-by Philipp Zabel <[email protected]>
--- arch/arm/mach-imx/src.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/src.c +1 -1
@@ -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, };
Signature · 1 line
2.7.0
Shawn Guo
AppliedPATCH 1/2 ARM: imx: Make reset_control_ops const
Quoted 3 lines · Philipp Zabel
The
imx_src_opsstructure is never modified. Make it const.Signed-off-by Philipp Zabel <[email protected]>
Applied, thanks.
PATCH 2/2 ARM: sirf: Make reset_control_ops const
In reply to Philipp ZabelThe sirfsoc_rstc_ops structure is never modified. Make it const.
Signed-off-by Philipp Zabel <[email protected]>
--- arch/arm/mach-prima2/rstc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-prima2/rstc.c +1 -1
@@ -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, };
Signature · 1 line
2.7.0