From: Stephen Boyd Date: Thu, 17 Feb 2022 22:05:54 +0000 (-0800) Subject: clk: Mark clk_core_evict_parent_cache_subtree() 'target' const X-Git-Tag: v5.18-rc1~61^2~3^3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8df64183b8b71c751cf81c3d7655227fbea837b2;p=thirdparty%2Fkernel%2Flinux.git clk: Mark clk_core_evict_parent_cache_subtree() 'target' const Clarify that the 'target' clk isn't being modified, instead it's being searched for. Mark it const so the function can't modify it. Signed-off-by: Stephen Boyd Link: https://lore.kernel.org/r/20220217220554.2711696-3-sboyd@kernel.org --- diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 16384e9437f59..d15997ea3930e 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -4079,7 +4079,7 @@ static const struct clk_ops clk_nodrv_ops = { }; static void clk_core_evict_parent_cache_subtree(struct clk_core *root, - struct clk_core *target) + const struct clk_core *target) { int i; struct clk_core *child;