]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: leds-lp5569: Convert to sysfs_emit API
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 26 Jun 2024 22:15:11 +0000 (00:15 +0200)
committerLee Jones <lee@kernel.org>
Thu, 4 Jul 2024 15:44:45 +0000 (16:44 +0100)
commit6f2fdde9096f3c4d35a7711c91a78c086be66aed
tree1f7397e506eb173b3d06f6d227f20e354448e72e
parent940b27161afc6ec53fc66245a4fb3518394cdc92
leds: leds-lp5569: Convert to sysfs_emit API

Convert sprintf to the much safer sysfs_emit API to handle output for
sysfs.

Also better handle situation where on the same chip there may be LED
open and shorted at the same time.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20240626221520.2846-1-ansuelsmth@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-lp5569.c