aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/core.c
diff options
context:
space:
mode:
authorFederico Vaga <federico.vaga@gmail.com>2013-04-15 05:18:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-21 12:29:00 -0400
commita4e2400a63f0e4fb6af5083a24d80b6fa4c41ccd (patch)
treeac14970e436777bf12a28c0e8064a50226807cba /drivers/base/core.c
parent5240d58c0449febcf7476a3a21e40a36bd5c7dea (diff)
base/core.c: improve comment of the function device_find_child()
Signed-off-by: Federico Vaga <federico.vaga@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r--drivers/base/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 016312437577..3c8512f7b64c 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1372,6 +1372,8 @@ int device_for_each_child(struct device *parent, void *data,
1372 * if it does. If the callback returns non-zero and a reference to the 1372 * if it does. If the callback returns non-zero and a reference to the
1373 * current device can be obtained, this function will return to the caller 1373 * current device can be obtained, this function will return to the caller
1374 * and not iterate over any more devices. 1374 * and not iterate over any more devices.
1375 *
1376 * NOTE: you will need to drop the reference with put_device() after use.
1375 */ 1377 */
1376struct device *device_find_child(struct device *parent, void *data, 1378struct device *device_find_child(struct device *parent, void *data,
1377 int (*match)(struct device *dev, void *data)) 1379 int (*match)(struct device *dev, void *data))