usb: fotg210-hcd: use sysfs_emit() to instead of scnprintf()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Jan 2023 15:44:33 +0000 (17:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 17:12:58 +0000 (18:12 +0100)
commit861fa1c3fafffe47e6845ce95c847b2422792fcc
tree295c925f0c6bb5a12356b78f8088d636ab3f8d19
parentc5d4297f0c20dd8650019786ab7e94296e6b8647
usb: fotg210-hcd: use sysfs_emit() to instead of scnprintf()

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230120154437.22025-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/fotg210/fotg210-hcd.c