linux/drivers/leds/rgb
Haotian Zhang 784936cad3 leds: qcom-lpg: Check the return value of regmap_bulk_write()
[ Upstream commit f42033b5ce ]

The lpg_lut_store() function currently ignores the return value of
regmap_bulk_write() and always returns 0. This can cause hardware write
failures to go undetected, leading the caller to believe LUT programming
succeeded when it may have failed.

Check the return value of regmap_bulk_write() in lpg_lut_store and return
the error to the caller on failure.

Fixes: 24e2d05d1b ("leds: Add driver for Qualcomm LPG")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20260108175133.638-1-vulab@iscas.ac.cn
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-26 14:59:35 -08:00
..
Kconfig leds: rgb: leds-ktd202x: Get device properties through fwnode to support ACPI 2024-05-31 12:55:44 +01:00
leds-group-multicolor.c leds: rgb: leds-group-multicolor: Correct the typo 'acccess' 2024-10-09 10:37:20 +01:00
leds-ktd202x.c leds: rgb: ktd202x: Switch to device_for_each_child_node_scoped() 2024-10-09 15:19:16 +01:00
leds-mt6370-rgb.c leds: rgb: leds-mt6370-rgb: Improve definition of some struct linear_range 2025-05-14 09:25:08 +01:00
leds-ncp5623.c leds: ncp5623: Use fwnode_get_child_node_count() 2025-04-10 10:12:24 +01:00
leds-pwm-multicolor.c leds: pwm-multicolor: Use fwnode_get_child_node_count() 2025-04-10 10:12:20 +01:00
leds-qcom-lpg.c leds: qcom-lpg: Check the return value of regmap_bulk_write() 2026-02-26 14:59:35 -08:00
Makefile leds: Add NCP5623 multi-led driver 2024-03-07 08:48:18 +00:00