clk: Make clk input parameter of __clk_get_name() const
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 16 Oct 2015 12:35:21 +0000 (14:35 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 16 Oct 2015 18:56:19 +0000 (11:56 -0700)
commitb76281cb97761002277730432812b1687de96062
tree116a3d0d4c12c21444718cca78e60de37d2723fc
parent08ebdf80dc9d3a12cb1f4a0e32c1ddf16a59b5ce
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>
drivers/clk/clk.c
include/linux/clk-provider.h