]> git.ipfire.org Git - thirdparty/linux.git/commit
leds: leds-lp55xx: Generalize sysfs engine_leds
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 26 Jun 2024 16:00:21 +0000 (18:00 +0200)
committerLee Jones <lee@kernel.org>
Wed, 26 Jun 2024 16:08:31 +0000 (17:08 +0100)
commit8913c2c14728851f110e0d439d5bb2360c767cd2
treef8a4d5f28eff08bcc5d629f729ad7d6d7e4451e4
parent082a4d3f068734eb242e38892d0977ef271c0143
leds: leds-lp55xx: Generalize sysfs engine_leds

Generalize sysfs engine_leds since their implementation is the same across
some lp55xx based LED driver.

While at it simplify the implementation for show_engine_leds.

Suggested-by: Lee Jones <lee@kernel.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20240626160027.19703-17-ansuelsmth@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-lp5523.c
drivers/leds/leds-lp55xx-common.c
drivers/leds/leds-lp55xx-common.h