Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: sunxi: Make reset_control_ops const

The sunxi_ve_reset_ops, sun9i_mmc_reset_ops, and sunxi_usb_reset_ops
structures are never modified. Make them const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Philipp Zabel and committed by
Stephen Boyd
5e7bc9c6 b1b69c5d

+3 -3
+1 -1
drivers/clk/sunxi/clk-a10-ve.c
··· 85 85 return 0; 86 86 } 87 87 88 - static struct reset_control_ops sunxi_ve_reset_ops = { 88 + static const struct reset_control_ops sunxi_ve_reset_ops = { 89 89 .assert = sunxi_ve_reset_assert, 90 90 .deassert = sunxi_ve_reset_deassert, 91 91 };
+1 -1
drivers/clk/sunxi/clk-sun9i-mmc.c
··· 83 83 return 0; 84 84 } 85 85 86 - static struct reset_control_ops sun9i_mmc_reset_ops = { 86 + static const struct reset_control_ops sun9i_mmc_reset_ops = { 87 87 .assert = sun9i_mmc_reset_assert, 88 88 .deassert = sun9i_mmc_reset_deassert, 89 89 };
+1 -1
drivers/clk/sunxi/clk-usb.c
··· 76 76 return 0; 77 77 } 78 78 79 - static struct reset_control_ops sunxi_usb_reset_ops = { 79 + static const struct reset_control_ops sunxi_usb_reset_ops = { 80 80 .assert = sunxi_usb_reset_assert, 81 81 .deassert = sunxi_usb_reset_deassert, 82 82 };