]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: gadget: f_uac2: replace scnprintf() with sysfs_emit()
authorSumanth Gavini <sumanth.gavini@yahoo.com>
Fri, 4 Jul 2025 00:34:22 +0000 (19:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2025 09:05:30 +0000 (11:05 +0200)
commit7168c06d9ba0932466272ac8bfbdd793a4fab636
tree3f2d1d4e5b7e642df1cb6b6ece295c457ad37c69
parentb581e472d95d584d2e30e34f3e055d9754faddb2
usb: gadget: f_uac2: replace scnprintf() with sysfs_emit()

Documentation/filesystems/sysfs.rst mentions that show() should only
use sysfs_emit() or sysfs_emit_at() when formating the value to be
returned to user space. So replace scnprintf() with sysfs_emit().

Signed-off-by: Sumanth Gavini <sumanth.gavini@yahoo.com>
Link: https://lore.kernel.org/r/20250704003425.467299-1-sumanth.gavini@yahoo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uac2.c