]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit7df2725f9869cf54b38cdc08fdf344828dbfdb83
tree4bb508d85d9de2588235caddf197da57a47b5d6e
parent81db9aba7394797a17f5a8840ff8f3b868959593
[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