From: Andy Shevchenko Date: Tue, 4 Oct 2022 09:21:27 +0000 (+0300) Subject: device property: Constify parameter in fwnode_graph_is_endpoint() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a1bfed6094ac6868c43aaa43d021bf562cd93d07;p=linux.git device property: Constify parameter in fwnode_graph_is_endpoint() Constify parameter in fwnode_graph_is_endpoint() since it doesn't alter anything related to it. Signed-off-by: Andy Shevchenko Acked-by: Heikki Krogerus Reviewed-by: Sakari Ailus Link: https://lore.kernel.org/r/20221004092129.19412-4-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/property.h b/include/linux/property.h index 8d82775a901a9..7abb1792044f7 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -410,7 +410,7 @@ struct fwnode_handle *fwnode_graph_get_remote_port( struct fwnode_handle *fwnode_graph_get_remote_endpoint( const struct fwnode_handle *fwnode); -static inline bool fwnode_graph_is_endpoint(struct fwnode_handle *fwnode) +static inline bool fwnode_graph_is_endpoint(const struct fwnode_handle *fwnode) { return fwnode_property_present(fwnode, "remote-endpoint"); }