diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-08-12 16:04:56 -0400 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2015-08-24 19:49:11 -0400 |
commit | e7df6f6e21883d7e8b3ad4641c911da8314ef283 (patch) | |
tree | f8093aca607b3d00865e3d9b4264d3e90d2c93d2 /include/linux/clk-provider.h | |
parent | c1628a2c416da947f5afac615d53189250fa49cb (diff) |
clk: Constify clk_hw argument to provider APIs
We don't modify the clk_hw argument in these functions, so it's
safe to mark it as const.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r-- | include/linux/clk-provider.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 0d3128fbc14e..3ecc07d0da77 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h | |||
@@ -607,17 +607,17 @@ void devm_clk_unregister(struct device *dev, struct clk *clk); | |||
607 | 607 | ||
608 | /* helper functions */ | 608 | /* helper functions */ |
609 | const char *__clk_get_name(struct clk *clk); | 609 | const char *__clk_get_name(struct clk *clk); |
610 | const char *clk_hw_get_name(struct clk_hw *hw); | 610 | const char *clk_hw_get_name(const struct clk_hw *hw); |
611 | struct clk_hw *__clk_get_hw(struct clk *clk); | 611 | struct clk_hw *__clk_get_hw(struct clk *clk); |
612 | unsigned int clk_hw_get_num_parents(struct clk_hw *hw); | 612 | unsigned int clk_hw_get_num_parents(const struct clk_hw *hw); |
613 | struct clk_hw *clk_hw_get_parent(struct clk_hw *hw); | 613 | struct clk_hw *clk_hw_get_parent(const struct clk_hw *hw); |
614 | struct clk_hw *clk_hw_get_parent_by_index(struct clk_hw *hw, | 614 | struct clk_hw *clk_hw_get_parent_by_index(const struct clk_hw *hw, |
615 | unsigned int index); | 615 | unsigned int index); |
616 | unsigned int __clk_get_enable_count(struct clk *clk); | 616 | unsigned int __clk_get_enable_count(struct clk *clk); |
617 | unsigned long clk_hw_get_rate(struct clk_hw *hw); | 617 | unsigned long clk_hw_get_rate(const struct clk_hw *hw); |
618 | unsigned long __clk_get_flags(struct clk *clk); | 618 | unsigned long __clk_get_flags(struct clk *clk); |
619 | unsigned long clk_hw_get_flags(struct clk_hw *hw); | 619 | unsigned long clk_hw_get_flags(const struct clk_hw *hw); |
620 | bool clk_hw_is_prepared(struct clk_hw *hw); | 620 | bool clk_hw_is_prepared(const struct clk_hw *hw); |
621 | bool __clk_is_enabled(struct clk *clk); | 621 | bool __clk_is_enabled(struct clk *clk); |
622 | struct clk *__clk_lookup(const char *name); | 622 | struct clk *__clk_lookup(const char *name); |
623 | int __clk_mux_determine_rate(struct clk_hw *hw, | 623 | int __clk_mux_determine_rate(struct clk_hw *hw, |