]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control-led: Replace sprintf() with sysfs_emit()
authorTakashi Iwai <tiwai@suse.de>
Mon, 1 Aug 2022 16:56:35 +0000 (18:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Aug 2022 14:03:43 +0000 (16:03 +0200)
commitf907ff320f7b12d2a34e345923bbcf58dcd962e5
tree770d58a907fda09354eaf6e1980a69bcf3a55fc0
parent5d97a3c4b40ad8e242c7ac36f55231fe1bacb54b
ALSA: control-led: Replace sprintf() with sysfs_emit()

For sysfs outputs, it's safer to use a new helper, sysfs_emit(),
instead of the raw sprintf() & co.  This patch replaces such sprintf()
calls with sysfs_emit() while simplifying the open code in
list_show().

Link: https://lore.kernel.org/r/20220801165639.26030-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control_led.c