mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
6effc8857b
commit
a3c85b2ee0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue