summaryrefslogtreecommitdiffstats
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-10-16 14:35:21 +0200
committerStephen Boyd <sboyd@codeaurora.org>2015-10-16 11:56:19 -0700
commitb76281cb97761002277730432812b1687de96062 (patch)
tree116a3d0d4c12c21444718cca78e60de37d2723fc /include/linux/clk-provider.h
parent08ebdf80dc9d3a12cb1f4a0e32c1ddf16a59b5ce (diff)
downloadlinux-b76281cb97761002277730432812b1687de96062.tar.gz
linux-b76281cb97761002277730432812b1687de96062.tar.bz2
linux-b76281cb97761002277730432812b1687de96062.zip
clk: Make clk input parameter of __clk_get_name() const
When calling __clk_get_name() on a const clock: warning: passing argument 1 of '__clk_get_name' discards 'const' qualifier from pointer target type include/linux/clk-provider.h:613:13: note: expected 'struct clk *' but argument is of type 'const struct clk *' __clk_get_name() does not modify the passed clock, hence make it const. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 8ff43eb4b311..bbb8fed11e44 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -607,7 +607,7 @@ void clk_unregister(struct clk *clk);
void devm_clk_unregister(struct device *dev, struct clk *clk);
/* helper functions */
-const char *__clk_get_name(struct clk *clk);
+const char *__clk_get_name(const struct clk *clk);
const char *clk_hw_get_name(const struct clk_hw *hw);
struct clk_hw *__clk_get_hw(struct clk *clk);
unsigned int clk_hw_get_num_parents(const struct clk_hw *hw);