]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Create sysfs attribute files via groups
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Feb 2014 07:30:50 +0000 (08:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Feb 2014 11:12:49 +0000 (12:12 +0100)
commitaf5d55a4956ded3a68329c39d1b3f4f1b45b93f5
tree1bca8a78c67dc2d54e6a83c3ec81dbcc302676d0
parentbc36c13320ab72473227a3bc2d76ab48808e74c2
ALSA: Create sysfs attribute files via groups

Instead of calling each time device_create_file(), create the groups
of sysfs attribute files at once in a normal way.  Add a new helper
function, snd_get_device(), to return the associated device object,
so that we can handle the sysfs addition locally.

Since the sysfs file addition is done differently now,
snd_add_device_sysfs_file() helper function is removed.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
include/sound/hwdep.h
sound/core/hwdep.c
sound/core/pcm.c
sound/core/sound.c
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_hwdep.c
sound/pci/hda/hda_local.h