* [PATCH] of: make of_node_check_flag() device_node parameter const
@ 2021-10-14 17:30 Nathan Lynch
2021-10-20 16:34 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Lynch @ 2021-10-14 17:30 UTC (permalink / raw)
To: devicetree; +Cc: robh+dt, frowand.list, linux-kernel
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>
---
include/linux/of.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/of.h b/include/linux/of.h
index 6f1c41f109bb..ac3a5dcbf9e1 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);
}
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] of: make of_node_check_flag() device_node parameter const
2021-10-14 17:30 [PATCH] of: make of_node_check_flag() device_node parameter const Nathan Lynch
@ 2021-10-20 16:34 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2021-10-20 16:34 UTC (permalink / raw)
To: Nathan Lynch; +Cc: frowand.list, robh+dt, devicetree, linux-kernel
On Thu, 14 Oct 2021 12:30:55 -0500, Nathan Lynch wrote:
> 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>
> ---
> include/linux/of.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-20 16:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-14 17:30 [PATCH] of: make of_node_check_flag() device_node parameter const Nathan Lynch
2021-10-20 16:34 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).