summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2006-11-16 17:42:07 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-02 01:52:01 +0300
commit5ab699810d46011ad2195c5916f3cbc684bfe3ee (patch)
tree991f6d4f502fd7871766b51a94a0e3ab33aadd62 /include/linux
parent035ed7a49447bc8e15d4d9316fc6a359b2d94333 (diff)
downloadlinux-5ab699810d46011ad2195c5916f3cbc684bfe3ee.tar.xz
driver core: Introduce device_find_child().
Introduce device_find_child() to match device_for_each_child(). Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 2d9dc358c027..0a0370c74181 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -421,6 +421,8 @@ extern int __must_check device_add(struct device * dev);
extern void device_del(struct device * dev);
extern int device_for_each_child(struct device *, void *,
int (*fn)(struct device *, void *));
+extern struct device *device_find_child(struct device *, void *data,
+ int (*match)(struct device *, void *));
extern int device_rename(struct device *dev, char *new_name);
/*