summaryrefslogtreecommitdiff
path: root/drivers/clk/ingenic/jz4780-cgu.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2018-01-16 18:47:51 +0300
committerJames Hogan <jhogan@kernel.org>2018-01-19 01:04:36 +0300
commitee1f9df26972fd736e0b2f52ad19935046bbc189 (patch)
treeb29774e83cc0d91ed9ecd7c02c856c14aaff22d2 /drivers/clk/ingenic/jz4780-cgu.c
parent83aa53eb5f34f48e6ff24aee02f879b50c949982 (diff)
downloadlinux-ee1f9df26972fd736e0b2f52ad19935046bbc189.tar.xz
clk: ingenic: Use const pointer to clk_ops in struct
The CGU common code does not modify the pointed clk_ops structure, so it should be marked as const. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Acked-by: Stephen Boyd <sboyd@codeaurora.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Maarten ter Huurne <maarten@treewalker.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/18476/ Signed-off-by: James Hogan <jhogan@kernel.org>
Diffstat (limited to 'drivers/clk/ingenic/jz4780-cgu.c')
-rw-r--r--drivers/clk/ingenic/jz4780-cgu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/ingenic/jz4780-cgu.c b/drivers/clk/ingenic/jz4780-cgu.c
index ac3585ed8228..6427be117ff1 100644
--- a/drivers/clk/ingenic/jz4780-cgu.c
+++ b/drivers/clk/ingenic/jz4780-cgu.c
@@ -203,7 +203,7 @@ static int jz4780_otg_phy_set_rate(struct clk_hw *hw, unsigned long req_rate,
return 0;
}
-static struct clk_ops jz4780_otg_phy_ops = {
+static const struct clk_ops jz4780_otg_phy_ops = {
.get_parent = jz4780_otg_phy_get_parent,
.set_parent = jz4780_otg_phy_set_parent,