Skip to content

Commit

Permalink
base/core.c: improve comment of the function device_find_child()
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Federico Vaga authored and Greg Kroah-Hartman committed May 21, 2013
1 parent 5240d58 commit a4e2400
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/base/core.c
Original file line number Diff line number Diff line change
@@ -1372,6 +1372,8 @@ int device_for_each_child(struct device *parent, void *data,
* if it does. If the callback returns non-zero and a reference to the
* current device can be obtained, this function will return to the caller
* and not iterate over any more devices.
*
* NOTE: you will need to drop the reference with put_device() after use.
*/
struct device *device_find_child(struct device *parent, void *data,
int (*match)(struct device *dev, void *data))

0 comments on commit a4e2400

Please sign in to comment.