]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: gadget: f_uac1: replace scnprintf() with sysfs_emit()
authorSumanth Gavini <sumanth.gavini@yahoo.com>
Fri, 18 Jul 2025 17:50:35 +0000 (12:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2025 14:31:28 +0000 (16:31 +0200)
commitbb76f0d843a26d11bed5df2793b492ca414de0a4
treedccb051eb9adda4100a6dc6ece904d9ee566bf7f
parentd8e1ecffb4a282791be1b3d81a05541749b0db64
usb: gadget: f_uac1: 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/20250718175037.299710-1-sumanth.gavini@yahoo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uac1.c