aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Lynch <nathanl@linux.ibm.com>2021-10-14 12:30:55 -0500
committerRob Herring <robh@kernel.org>2021-10-20 13:37:25 -0500
commita3c85b2ee098c4a293148fab4eb96299e92b9524 (patch)
tree7e3d6b5415c037c27f92235ca44207f719799cd8
parentof: kobj: make of_node_is_(initialized|attached) parameters const (diff)
downloadlinux-dev-a3c85b2ee098c4a293148fab4eb96299e92b9524.tar.xz
linux-dev-a3c85b2ee098c4a293148fab4eb96299e92b9524.zip
of: make of_node_check_flag() device_node parameter const
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>
-rw-r--r--include/linux/of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 807f8168dad9..ff143a027abc 100644
--- 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);
}