]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
accel/qaic: Replace snprintf() with sysfs_emit() in sysfs show functions
authorChelsy Ratnawat <chelsyratnawat2001@gmail.com>
Fri, 22 Aug 2025 11:28:04 +0000 (04:28 -0700)
committerJeff Hugo <jeff.hugo@oss.qualcomm.com>
Mon, 6 Oct 2025 20:38:20 +0000 (14:38 -0600)
commite68c994445e37322eac1f255489eb4564935969a
tree267b5b7c0c413b5bec77a677c6caf35023895d15
parentbed1291240e19782873120c59c305e24d94407a1
accel/qaic: Replace snprintf() with sysfs_emit() in sysfs show functions

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

Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
[jhugo: Fix commit text typos]
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250822112804.1726592-1-chelsyratnawat2001@gmail.com
drivers/accel/qaic/qaic_ras.c