]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
clk: mmp: make clk_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 22 Aug 2017 13:35:55 +0000 (19:05 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 2 Nov 2017 06:25:47 +0000 (23:25 -0700)
Make these const as they are only stored in the const field of a
clk_init_data structure.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mmp/clk-apbc.c
drivers/clk/mmp/clk-apmu.c
drivers/clk/mmp/clk-frac.c

index 4c717db05f2deb61a4519c7b112d3c75199371fe..fb294ada0b03d770de27a02b151c9e311b2462cf 100644 (file)
@@ -114,7 +114,7 @@ static void clk_apbc_unprepare(struct clk_hw *hw)
                spin_unlock_irqrestore(apbc->lock, flags);
 }
 
-static struct clk_ops clk_apbc_ops = {
+static const struct clk_ops clk_apbc_ops = {
        .prepare = clk_apbc_prepare,
        .unprepare = clk_apbc_unprepare,
 };
index 47b5542ce50f3ec8c356eeb4bdbf9c580f207bfd..b7ce8f52026e40be24e5683d458dbb3597bb860e 100644 (file)
@@ -60,7 +60,7 @@ static void clk_apmu_disable(struct clk_hw *hw)
                spin_unlock_irqrestore(apmu->lock, flags);
 }
 
-static struct clk_ops clk_apmu_ops = {
+static const struct clk_ops clk_apmu_ops = {
        .enable = clk_apmu_enable,
        .disable = clk_apmu_disable,
 };
index 584a9927993b41f73df73f40ec598f4e7d45ca1d..ea47a968ad9b5b1ae317d57859b369b42fa4c39e 100644 (file)
@@ -149,7 +149,7 @@ static void clk_factor_init(struct clk_hw *hw)
                spin_unlock_irqrestore(factor->lock, flags);
 }
 
-static struct clk_ops clk_factor_ops = {
+static const struct clk_ops clk_factor_ops = {
        .recalc_rate = clk_factor_recalc_rate,
        .round_rate = clk_factor_round_rate,
        .set_rate = clk_factor_set_rate,