projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c63fea
)
of: Constify of_changeset_entry function arguments
author
Rob Herring (Arm)
<robh@kernel.org>
Thu, 10 Oct 2024 16:27:18 +0000
(11:27 -0500)
committer
Rob Herring (Arm)
<robh@kernel.org>
Tue, 15 Oct 2024 13:58:36 +0000
(08:58 -0500)
__of_changeset_entry_invert() and __of_changeset_entry_revert() don't
modify struct of_changeset_entry arguments, so they can be const.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link:
https://lore.kernel.org/r/20241010-dt-const-v1-5-87a51f558425@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/dynamic.c
patch
|
blob
|
history
diff --git
a/drivers/of/dynamic.c
b/drivers/of/dynamic.c
index
110104a
..
d45a8df
100644
(file)
--- a/
drivers/of/dynamic.c
+++ b/
drivers/of/dynamic.c
@@
-536,7
+536,7
@@
static void __of_changeset_entry_destroy(struct of_changeset_entry *ce)
kfree(ce);
}
-static void __of_changeset_entry_invert(struct of_changeset_entry *ce,
+static void __of_changeset_entry_invert(
const
struct of_changeset_entry *ce,
struct of_changeset_entry *rce)
{
memcpy(rce, ce, sizeof(*rce));
@@
-636,7
+636,7
@@
static int __of_changeset_entry_apply(struct of_changeset_entry *ce)
return 0;
}
-static inline int __of_changeset_entry_revert(struct of_changeset_entry *ce)
+static inline int __of_changeset_entry_revert(
const
struct of_changeset_entry *ce)
{
struct of_changeset_entry ce_inverted;