of: kobj: make of_node_is_(initialized|attached) parameters const
authorNathan Lynch <nathanl@linux.ibm.com>
Thu, 14 Oct 2021 17:30:23 +0000 (12:30 -0500)
committerRob Herring <robh@kernel.org>
Wed, 20 Oct 2021 18:37:25 +0000 (13:37 -0500)
commit6effc8857b24350cb7534cb1029ade9a8573e04a
tree9a45cea34da5e5ac3cb5fa619855f5658d47c13f
parent7688fa1025cda1463b091bf2212f2afa68ceb711
of: kobj: make of_node_is_(initialized|attached) parameters const

of_node_is_initialized() and of_node_is_attached() don't modify the node
objects passed to them, so those parameters should be const.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Link: https://lore.kernel.org/r/20211014173023.2117799-1-nathanl@linux.ibm.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/kobj.c
drivers/of/of_private.h