mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
This commit is contained in:
parent
08ebdf80dc
commit
b76281cb97
2 changed files with 2 additions and 2 deletions
|
|
@ -272,7 +272,7 @@ late_initcall_sync(clk_disable_unused);
|
|||
|
||||
/*** helper functions ***/
|
||||
|
||||
const char *__clk_get_name(struct clk *clk)
|
||||
const char *__clk_get_name(const struct clk *clk)
|
||||
{
|
||||
return !clk ? NULL : clk->core->name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue