]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: lp8860: Enable regulator using enable_optional helper
authorAndrew Davis <afd@ti.com>
Mon, 7 Apr 2025 18:35:53 +0000 (13:35 -0500)
committerLee Jones <lee@kernel.org>
Wed, 14 May 2025 08:24:54 +0000 (09:24 +0100)
commitb0d6394094ee657f50b42b44f4903014d90e912a
tree327ff5d0b5d2e43e13229f4d8109fca1efb65fbc
parent0cb55e16bd842364340d24e2e368b9d6c5800423
leds: lp8860: Enable regulator using enable_optional helper

This allows the regulator to be optional which is the same as
done here with all the checks for NULL. This also disables
on remove for us, so remove the manual disabling.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20250407183555.409687-4-afd@ti.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-lp8860.c