]> Gentwo Git Trees - linux/.git/commit
leds: led-class: Replace sprintf() with sysfs_emit() in sysfs show functions
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 3 Nov 2025 12:08:09 +0000 (13:08 +0100)
committerLee Jones <lee@kernel.org>
Thu, 13 Nov 2025 15:22:24 +0000 (15:22 +0000)
commit92f4b016dcb955cc0bb3942ac217cff6fe450a57
tree45ea0e4964d8b5ea5204292e1a1dafe0a09bb75a
parentc42b91c426a12523b8d02bc6041f7931f199a301
leds: led-class: Replace sprintf() with sysfs_emit() in sysfs show functions

Replace sprintf() with sysfs_emit() in sysfs show functions.
sysfs_emit() is preferred to format sysfs output as it provides better
bounds checking.  No functional changes.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20251103120809.32834-1-thorsten.blum@linux.dev
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/led-class.c