projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6effc88
)
of: make of_node_check_flag() device_node parameter const
author
Nathan Lynch
<nathanl@linux.ibm.com>
Thu, 14 Oct 2021 17:30:55 +0000
(12:30 -0500)
committer
Rob Herring
<robh@kernel.org>
Wed, 20 Oct 2021 18:37:25 +0000
(13:37 -0500)
The device_node argument isn't modified by of_node_check_flag(), so mark it
const.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Link:
https://lore.kernel.org/r/20211014173055.2117872-1-nathanl@linux.ibm.com
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/of.h
b/include/linux/of.h
index 807f8168dad979df5d0f665000b05e2033d45f54..ff143a027abc4b2752d2457a280a39811ce32c0e 100644
(file)
--- a/
include/linux/of.h
+++ b/
include/linux/of.h
@@
-185,7
+185,7
@@
static inline bool of_node_is_root(const struct device_node *node)
return node && (node->parent == NULL);
}
-static inline int of_node_check_flag(struct device_node *n, unsigned long flag)
+static inline int of_node_check_flag(
const
struct device_node *n, unsigned long flag)
{
return test_bit(flag, &n->_flags);
}