projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75061a6
)
clk: Mark clk_core_evict_parent_cache_subtree() 'target' const
author
Stephen Boyd
<sboyd@kernel.org>
Thu, 17 Feb 2022 22:05:54 +0000
(14:05 -0800)
committer
Stephen Boyd
<sboyd@kernel.org>
Sat, 26 Feb 2022 01:02:47 +0000
(17:02 -0800)
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
drivers/clk/clk.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index 16384e9437f59380554de883adb9e5c562e8aa3b..d15997ea3930e3bbf4187317ac00cbdabaa2e29b 100644
(file)
--- 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;