]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Replace sprintf() with sysfs_emit()
authorTakashi Iwai <tiwai@suse.de>
Mon, 1 Aug 2022 16:56:38 +0000 (18:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Aug 2022 14:03:47 +0000 (16:03 +0200)
commit03fdc9f0d95ee7cb93697c96d3c0eb4432ae9d18
tree324e6f6b1c3197014c3932936ade22fcc239af78
parentb108a8d6e34d07499ff407ab27a055b998c474a9
ALSA: hda: 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 those usages
straightforwardly with new helpers, sysfs_emit() and sysfs_emit_at().

Link: https://lore.kernel.org/r/20220801165639.26030-7-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_sysfs.c
sound/pci/hda/hda_sysfs.c