]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Add sysfs entries via static attribute groups
authorTakashi Iwai <tiwai@suse.de>
Fri, 30 Jan 2015 19:16:37 +0000 (20:16 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Feb 2015 20:02:42 +0000 (20:02 +0000)
commit920b3bb19d9bd7ca2994a05d3c8b531e2768c47f
tree1e829f0bacff5d5f2130ed13731f91e60f683c6b
parentc687bb41805a1238a38a086952014d5682516d9d
ASoC: Add sysfs entries via static attribute groups

Instead of calling device_create_file() manually, assign the static
attribute group entries at the device registration.  This simplifies
the error handling and avoids the possible races.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dapm.h
sound/soc/soc-core.c
sound/soc/soc-dapm.c