]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: lp8860: Only unlock in lp8860_unlock_eeprom()
authorAndrew Davis <afd@ti.com>
Mon, 7 Apr 2025 18:35:54 +0000 (13:35 -0500)
committerLee Jones <lee@kernel.org>
Wed, 14 May 2025 08:24:55 +0000 (09:24 +0100)
commite0b95ba33c0f31ac91741921cc89986536595862
tree87fe92ebe1bd4b4da37dc43b7211f43685b1f6f1
parentb0d6394094ee657f50b42b44f4903014d90e912a
leds: lp8860: Only unlock in lp8860_unlock_eeprom()

Locking is a single register write, so no need to have the unlock
function also lock. This removes the need to pass in the option
and reduces the nesting level in the function.

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