]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
leds: lp8860: Write full EEPROM, not only half of it
authorAlexander Sverdlin <alexander.sverdlin@siemens.com>
Thu, 14 Nov 2024 10:13:59 +0000 (11:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:38 +0000 (13:49 +0100)
commitcd413f57e86e26555e1e695d716f4d43ac9c8d7b
tree0592aa72cb3b3be8af035766a421362f3e5a2e8b
parent4e46560fa35d6876757f0a6a2c04157198800196
leds: lp8860: Write full EEPROM, not only half of it

commit 0d2e820a86793595e2a776855d04701109e46663 upstream.

I struggle to explain dividing an ARRAY_SIZE() by the size of an element
once again. As the latter equals to 2, only the half of EEPROM was ever
written. Drop the unexplainable division and write full ARRAY_SIZE().

Cc: stable@vger.kernel.org
Fixes: 7a8685accb95 ("leds: lp8860: Introduce TI lp8860 4 channel LED driver")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Link: https://lore.kernel.org/r/20241114101402.2562878-1-alexander.sverdlin@siemens.com
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/leds/leds-lp8860.c