ALSA: ac97: Replace sprintf() with sysfs_emit()
authorTakashi Iwai <tiwai@suse.de>
Mon, 1 Aug 2022 16:56:33 +0000 (18:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Aug 2022 14:03:41 +0000 (16:03 +0200)
commit7450320ec7ab11e89e3f9b8f2c1229f3964181c1
tree1083fb9383aa86c4e58b7935bf2b612a30586318
parenta3b5d4715fd5a839857f8b7be78dff258a8d5a47
ALSA: ac97: 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 the open code
straightforwardly with a new helper.

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