Driver core: convert sound core to use struct device
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Aug 2006 05:19:37 +0000 (22:19 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:52:01 +0000 (14:52 -0800)
commitd80f19fab89cba8a6d16193154c8ff3edab00942
tree5d6b567a45ca4cc014bf5a1d10622c91ece2f63e
parentebf644c4623bc3eb57683199cd2b9080028b0f6f
Driver core: convert sound core to use struct device

Converts from using struct "class_device" to "struct device" making
everything show up properly in /sys/devices/ with symlinks from the
/sys/class directory.

It also makes the struct sound_card to show up as a "real" device
where all the different sound class devices are placed as childs
and different card attribute files can hang off of. /sys/class/sound is
still a flat directory, but the symlink targets of all devices belonging
to the same card, point the the /sys/devices tree below the new card
device object.

Thanks to Kay for the updates to this patch.

Signed-off-by: Kay Sievers <kay.sievers@novell.com>
Acked-by: Jaroslav Kysela <perex@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/sound/core.h
sound/core/init.c
sound/core/pcm.c
sound/core/sound.c
sound/oss/soundcard.c
sound/sound_core.c