Files
erofs-linux/rust/helpers/of.c
T
Danilo Krummrich 56a789f776 rust: device: implement FwNode::is_of_node()
Implement FwNode::is_of_node() in order to check whether a FwNode
instance is embedded in a struct device_node.

Reviewed-by: Rob Herring (Arm) <[email protected]>
Signed-off-by: Igor Korotin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Danilo Krummrich <[email protected]>
2025-06-25 18:10:12 +02:00

9 lines
156 B
C

// SPDX-License-Identifier: GPL-2.0
#include <linux/of.h>
bool rust_helper_is_of_node(const struct fwnode_handle *fwnode)
{
return is_of_node(fwnode);
}