Skip to content

Commit bee3bbe

Browse files
Saravana Kannangregkh
authored andcommitted
driver core: Clarify documentation for fwnode_operations.add_links()
The wording was a bit ambiguous. So update it to make it clear. Signed-off-by: Saravana Kannan <saravanak@google.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://lore.kernel.org/r/20191113023559.62295-2-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c745da8 commit bee3bbe

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎include/linux/fwnode.h‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,16 @@ struct fwnode_reference_args {
9494
* available suppliers.
9595
*
9696
* Return 0 if device links have been successfully created to all
97-
* the suppliers this device needs to create device links to or if
98-
* the supplier information is not known.
97+
* the known suppliers of this device or if the supplier
98+
* information is not known.
9999
*
100-
* Return -ENODEV if and only if the suppliers needed for probing
101-
* the device are not yet available to create device links to.
100+
* Return -ENODEV if the suppliers needed for probing this device
101+
* have not been registered yet (because device links can only be
102+
* created to devices registered with the driver core).
102103
*
103-
* Return -EAGAIN if there are suppliers that need to be linked to
104-
* that are not yet available but none of those suppliers are
105-
* necessary for probing this device.
104+
* Return -EAGAIN if some of the suppliers of this device have not
105+
* been registered yet, but none of those suppliers are necessary
106+
* for probing the device.
106107
*/
107108
struct fwnode_operations {
108109
struct fwnode_handle *(*get)(struct fwnode_handle *fwnode);

0 commit comments

Comments
 (0)