backlight: Use sysfs_emit() instead of sprintf()

Replace sprintf() with sysfs_emit() in the sysfs show callbacks of
backlight.c and lcd.c, as recommended by Documentation/filesystems/sysfs.rst.

No functional change intended.

Signed-off-by: Levente Szajko <raedrimhun@proton.me>
Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Link: https://patch.msgid.link/20260805135027.43890-1-raedrimhun@proton.me
Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
Levente Szajko 2026-08-05 13:51:39 +00:00 • committed by Lee Jones
commit cf1a12e080
2 changed files with 11 additions and 11 deletions