[PATCH] Driver Core: add the ability for class_device structures to be nested
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 05:25:43 +0000 (22:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 16:52:51 +0000 (09:52 -0700)
commit51d172d5f3a193e4b8f76179b2e55d7a36b94117
tree4bb508d85d9de2588235caddf197da57a47b5d6e
parenta7fd67062efc5b0fc9a61368c607fa92d1d57f9e
[PATCH] Driver Core: add the ability for class_device structures to be nested

This patch allows struct class_device to be nested, so that another
struct class_device can be the parent of a new one, instead of only
having the struct class be the parent.  This will allow us to
(hopefully) fix up the input and video class subsystem mess.

But please people, don't go crazy and start making huge trees of class
devices, you should only need 2 levels deep to get everything to work
(remember to use a class_interface to get notification of a new class
device being added to the system.)

Oh, this also allows us to have the possibility of potentially, someday,
moving /sys/block into /sys/class.  The main hindrance is that pesky
/dev numberspace issue...

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/class.c
include/linux/device.h