]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
leds: lp5569: Use sysfs_emit instead of sprintf()
authorNeel Bullywon <neelb2403@gmail.com>
Sat, 7 Feb 2026 18:18:25 +0000 (13:18 -0500)
committerLee Jones <lee@kernel.org>
Tue, 10 Mar 2026 09:22:55 +0000 (09:22 +0000)
commit0600cf91c0c3b749f2f6ef4c43f62c8c09d1eb82
treee1d78258f111021abe599e2b95695de91600f07a
parentb5227947e68e7515ba449b870338909ed32ac8d2
leds: lp5569: Use sysfs_emit instead of sprintf()

Replace sprintf() with sysfs_emit(), which is the modern standard for
formatting sysfs output.

This change aligng with the kernel's best practices and ensures usage of
the most up to date API.

Signed-off-by: Neel Bullywon <neelb2403@gmail.com>
Link: https://patch.msgid.link/20260207181825.13481-1-neelb2403@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-lp5569.c