]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bus: fsl-mc: Replace snprintf and sprintf with sysfs_emit in sysfs show functions
authorChelsy Ratnawat <chelsyratnawat2001@gmail.com>
Fri, 22 Aug 2025 12:43:39 +0000 (05:43 -0700)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 25 Aug 2025 17:55:03 +0000 (19:55 +0200)
commita50522c805a6c575c80f41b04706e084d814e116
treed8fe6daef0cfc962bed2c3e75e842ee42b1f7c4b
parent25f526507b8ccc6ac3a43bc094d09b1f9b0b90ae
bus: fsl-mc: Replace snprintf and sprintf with sysfs_emit in sysfs show functions

Use sysfs_emit() instead of snprintf()/sprintf()  when writing
to sysfs buffers, as recommended by the kernel documentation.

Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>
Acked-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20250822124339.1739290-1-chelsyratnawat2001@gmail.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
drivers/bus/fsl-mc/fsl-mc-bus.c