From: Nathan Lynch Date: Thu, 14 Oct 2021 17:30:55 +0000 (-0500) Subject: of: make of_node_check_flag() device_node parameter const X-Git-Tag: block-5.16-2021-11-13~72^2~21 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a3c85b2ee098c4a293148fab4eb96299e92b9524;p=linux-2.6-block.git 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 Link: https://lore.kernel.org/r/20211014173055.2117872-1-nathanl@linux.ibm.com Signed-off-by: Rob Herring --- 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); }