diff --git a/include/linux/property.h b/include/linux/property.h index 216dcfe567df..ec8ebd73b2c4 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -308,6 +308,11 @@ struct fwnode_handle * fwnode_graph_get_remote_node(const struct fwnode_handle *fwnode, u32 port, u32 endpoint); +static inline bool fwnode_graph_is_endpoint(struct fwnode_handle *fwnode) +{ + return fwnode_property_present(fwnode, "remote-endpoint"); +} + #define fwnode_graph_for_each_endpoint(fwnode, child) \ for (child = NULL; \ (child = fwnode_graph_get_next_endpoint(fwnode, child)); )