]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
clk: versatile: make clk_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 22 Aug 2017 14:06:26 +0000 (19:36 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 31 Aug 2017 05:38:59 +0000 (22:38 -0700)
Make this const as it is only stored in the const field of a
clk_init_data structure.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/versatile/clk-vexpress-osc.c

index 7e5add7d77528a5fbf7021fd69020a58b79db652..e7a868b83fe54e8add04ef9c59bb82ff3f23c67f 100644 (file)
@@ -61,7 +61,7 @@ static int vexpress_osc_set_rate(struct clk_hw *hw, unsigned long rate,
        return regmap_write(osc->reg, 0, rate);
 }
 
-static struct clk_ops vexpress_osc_ops = {
+static const struct clk_ops vexpress_osc_ops = {
        .recalc_rate = vexpress_osc_recalc_rate,
        .round_rate = vexpress_osc_round_rate,
        .set_rate = vexpress_osc_set_rate,