misc: ocxl: Replace scnprintf() with sysfs_emit() in sysfs show functions
authorAnkit Chauhan <ankitchauhan2065@gmail.com>
Fri, 20 Jun 2025 02:47:05 +0000 (08:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jun 2025 15:45:47 +0000 (16:45 +0100)
commit01c6d1df98cb4313e1a79ef5c064a485d3b271fd
tree86465a94df306535cc49571326f2391701cc595c
parentea6895f021c0716a280eff576d3f64f549187faa
misc: ocxl: Replace scnprintf() with sysfs_emit() in sysfs show functions

Replace scnprintf() with sysfs_emit() in sysfs show functions.
These helpers are preferred in sysfs callbacks because they automatically
handle buffer size and improve safety and readability.

Signed-off-by: Ankit Chauhan <ankitchauhan2065@gmail.com>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Link: https://lore.kernel.org/r/20250620024705.11321-1-ankitchauhan2065@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ocxl/sysfs.c