]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
leds: lp8860: Hold lock for all of EEPROM programming
authorAndrew Davis <afd@ti.com>
Thu, 5 Mar 2026 20:37:04 +0000 (14:37 -0600)
committerLee Jones <lee@kernel.org>
Tue, 10 Mar 2026 09:23:10 +0000 (09:23 +0000)
commit67a4a344f74cc8d3de9e0bc672143fbd1bcd1b6b
tree42f93656b874e5721dc10fdadb96c63431d2733a
parent665e064221498b08387f1fb5e12cee4d6e7f8d8a
leds: lp8860: Hold lock for all of EEPROM programming

The lock is taken while unlocking the EEPROM but then released, it should
instead be held for the whole EEPROM programming process. To do this
merge in the lp8860_unlock_eeprom() function to the only call site in
the lp8860_init() function. This way we hold the lock for all steps.
While here, rename this function to lp8860_program_eeprom() to better
represent what it really does.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://patch.msgid.link/20260305203706.841384-3-afd@ti.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-lp8860.c