Fix a warning raised by checkpatch about non-const clk_ops by making the relevant struct const.
Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Artur Weber <[email protected]> --- Changes in v6: - Add this commit --- drivers/clk/bcm/clk-kona.c | 2 +- drivers/clk/bcm/clk-kona.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/bcm/clk-kona.c b/drivers/clk/bcm/clk-kona.c index 0171e6b2bfca..2641eaa4ca52 100644 --- a/drivers/clk/bcm/clk-kona.c +++ b/drivers/clk/bcm/clk-kona.c @@ -1154,7 +1154,7 @@ static int kona_peri_clk_set_rate(struct clk_hw *hw, unsigned long rate, return ret; } -struct clk_ops kona_peri_clk_ops = { +const struct clk_ops kona_peri_clk_ops = { .enable = kona_peri_clk_enable, .disable = kona_peri_clk_disable, .is_enabled = kona_peri_clk_is_enabled, diff --git a/drivers/clk/bcm/clk-kona.h b/drivers/clk/bcm/clk-kona.h index d7cae437333c..7064ce316981 100644 --- a/drivers/clk/bcm/clk-kona.h +++ b/drivers/clk/bcm/clk-kona.h @@ -487,7 +487,7 @@ struct ccu_data { /* Exported globals */ -extern struct clk_ops kona_peri_clk_ops; +extern const struct clk_ops kona_peri_clk_ops; /* Externally visible functions */ -- 2.51.1

