Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit ee1f9df2 authored by Paul Cercueil's avatar Paul Cercueil Committed by James Hogan
Browse files

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: default avatarPaul Cercueil <paul@crapouillou.net>
Acked-by: default avatarStephen 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: default avatarJames Hogan <jhogan@kernel.org>
parent 83aa53eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ struct ingenic_cgu_gate_info {
 * @clk_ops: custom clock operation callbacks
 */
struct ingenic_cgu_custom_info {
	struct clk_ops *clk_ops;
	const struct clk_ops *clk_ops;
};

/**
+1 −1
Original line number Diff line number Diff line
@@ -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,