Driver Core: add class iteration api
authorDave Young <hidave.darkstar@gmail.com>
Tue, 22 Jan 2008 07:27:08 +0000 (15:27 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:44 +0000 (20:40 -0800)
commitfd04897bb20be29d60f7e426a053545aebeaa61a
tree7cd86b2d9de79a70bdeb32997240af5e28be6d03
parent63b6971a0876b744e2fcf3c9df15d130501e1deb
Driver Core: add class iteration api

Add the following class iteration functions for driver use:
class_for_each_device
class_find_device
class_for_each_child
class_find_child

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/class.c
include/linux/device.h