提交 49f39cb0 编写于 作者: S Sakari Ailus 提交者: Rafael J. Wysocki

device property: Fix documentation for FWNODE_GRAPH_DEVICE_DISABLED

FWNODE_GRAPH_DEVICE_DISABLED flag was meant for also returning endpoints
connected to disabled devices, but it also may return endpoints that are
not connected. Fix this in documentation. Also
fwnode_graph_get_endpoint_by_id() was affeced by this.

Also improve the language a little bit.

Fixes: 0fcc2bdc ("device property: Add fwnode_graph_get_endpoint_by_id()")
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 4a7f4110
...@@ -1063,8 +1063,8 @@ EXPORT_SYMBOL_GPL(fwnode_graph_get_remote_node); ...@@ -1063,8 +1063,8 @@ EXPORT_SYMBOL_GPL(fwnode_graph_get_remote_node);
* has not been found, look for the closest endpoint ID greater than the * has not been found, look for the closest endpoint ID greater than the
* specified one and return the endpoint that corresponds to it, if present. * specified one and return the endpoint that corresponds to it, if present.
* *
* Do not return endpoints that belong to disabled devices, unless * Does not return endpoints that belong to disabled devices or endpoints that
* FWNODE_GRAPH_DEVICE_DISABLED is passed in @flags. * are unconnected, unless FWNODE_GRAPH_DEVICE_DISABLED is passed in @flags.
* *
* The returned endpoint needs to be released by calling fwnode_handle_put() on * The returned endpoint needs to be released by calling fwnode_handle_put() on
* it when it is not needed any more. * it when it is not needed any more.
......
...@@ -414,7 +414,8 @@ static inline bool fwnode_graph_is_endpoint(struct fwnode_handle *fwnode) ...@@ -414,7 +414,8 @@ static inline bool fwnode_graph_is_endpoint(struct fwnode_handle *fwnode)
* one. * one.
* @FWNODE_GRAPH_DEVICE_DISABLED: That the device to which the remote * @FWNODE_GRAPH_DEVICE_DISABLED: That the device to which the remote
* endpoint of the given endpoint belongs to, * endpoint of the given endpoint belongs to,
* may be disabled. * may be disabled, or that the endpoint is not
* connected.
*/ */
#define FWNODE_GRAPH_ENDPOINT_NEXT BIT(0) #define FWNODE_GRAPH_ENDPOINT_NEXT BIT(0)
#define FWNODE_GRAPH_DEVICE_DISABLED BIT(1) #define FWNODE_GRAPH_DEVICE_DISABLED BIT(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册