Skip to content

Commit

Permalink
clk: Mark clk_core_evict_parent_cache_subtree() 'target' const
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Stephen Boyd committed Feb 26, 2022
1 parent 75061a6 commit 8df6418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8df6418

Please sign in to comment.