diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-22 16:42:07 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-11-02 09:25:45 +0300 |
commit | 9108620d2d52d7a58bbf6192e56903355eace907 (patch) | |
tree | 7d1f9ee5ad0387b5697c8fb50ef3b34b5ce99ea2 /drivers/clk/hisilicon/clk-hix5hd2.c | |
parent | ed3f2d12213b3d13ca0b941199c250c66a318b72 (diff) | |
download | linux-9108620d2d52d7a58bbf6192e56903355eace907.tar.xz |
clk: hisilicon: make clk_ops const
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>
Diffstat (limited to 'drivers/clk/hisilicon/clk-hix5hd2.c')
-rw-r--r-- | drivers/clk/hisilicon/clk-hix5hd2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/hisilicon/clk-hix5hd2.c b/drivers/clk/hisilicon/clk-hix5hd2.c index 14b05efa3c2a..9584f0c32dda 100644 --- a/drivers/clk/hisilicon/clk-hix5hd2.c +++ b/drivers/clk/hisilicon/clk-hix5hd2.c @@ -208,7 +208,7 @@ static void clk_ether_unprepare(struct clk_hw *hw) writel_relaxed(val, clk->ctrl_reg); } -static struct clk_ops clk_ether_ops = { +static const struct clk_ops clk_ether_ops = { .prepare = clk_ether_prepare, .unprepare = clk_ether_unprepare, }; @@ -247,7 +247,7 @@ static void clk_complex_disable(struct clk_hw *hw) writel_relaxed(val, clk->phy_reg); } -static struct clk_ops clk_complex_ops = { +static const struct clk_ops clk_complex_ops = { .enable = clk_complex_enable, .disable = clk_complex_disable, }; |