Skip to content

Commit 8df6418

Browse files
committed
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 <sboyd@kernel.org> Link: https://lore.kernel.org/r/20220217220554.2711696-3-sboyd@kernel.org
1 parent 75061a6 commit 8df6418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4079,7 +4079,7 @@ static const struct clk_ops clk_nodrv_ops = {
40794079
};
40804080

40814081
static void clk_core_evict_parent_cache_subtree(struct clk_core *root,
4082-
struct clk_core *target)
4082+
const struct clk_core *target)
40834083
{
40844084
int i;
40854085
struct clk_core *child;

0 commit comments

Comments
 (0)