projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2906aa
)
of: constify of_property_check_flags() prop argument
author
Clément Léger
<clement.leger@bootlin.com>
Wed, 1 Jun 2022 08:17:58 +0000
(10:17 +0200)
committer
Rob Herring
<robh@kernel.org>
Mon, 6 Jun 2022 17:41:25 +0000
(12:41 -0500)
This argument is not modified and thus can be set as const.
Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link:
https://lore.kernel.org/r/20220601081801.348571-2-clement.leger@bootlin.com
include/linux/of.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/of.h
b/include/linux/of.h
index f0a5d6b10c5a7af542c9c9f41440ba0f133a9571..d74fd82a6963a12e5204f1f65fb534a52bb2e893 100644
(file)
--- a/
include/linux/of.h
+++ b/
include/linux/of.h
@@
-207,7
+207,7
@@
static inline void of_node_clear_flag(struct device_node *n, unsigned long flag)
}
#if defined(CONFIG_OF_DYNAMIC) || defined(CONFIG_SPARC)
-static inline int of_property_check_flag(struct property *p, unsigned long flag)
+static inline int of_property_check_flag(
const
struct property *p, unsigned long flag)
{
return test_bit(flag, &p->_flags);
}
@@
-814,7
+814,8
@@
static inline void of_node_clear_flag(struct device_node *n, unsigned long flag)
{
}
-static inline int of_property_check_flag(struct property *p, unsigned long flag)
+static inline int of_property_check_flag(const struct property *p,
+ unsigned long flag)
{
return 0;
}