clk: Constify clk_has_parent()
authorMaxime Ripard <maxime@cerno.tech>
Tue, 16 Aug 2022 11:25:25 +0000 (13:25 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 15 Sep 2022 16:32:06 +0000 (09:32 -0700)
commit22fb0e284fbc3c1b85d24c5a1df8ea3ac82ab1d1
tree2d98056f1d0903bcbe8123ae423602bb7b06d317
parent1234a2c40b8cf16041fb9acd730160e6c5b4ba13
clk: Constify clk_has_parent()

clk_has_parent() doesn't modify the clocks being passed, so let's make
it const.

Suggested-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220816112530.1837489-21-maxime@cerno.tech
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c
include/linux/clk.h