linux/drivers/leds/rgb
Haotian Zhang 37fa7dd137 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-03-04 07:20:33 -05: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: Allow LEDs to stay on in suspend 2024-03-07 08:48:08 +00:00
leds-ktd202x.c leds: rgb: leds-ktd202x: Initialize mutex earlier 2024-05-31 12:57:34 +01:00
leds-mt6370-rgb.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
leds-ncp5623.c leds: ncp5623: Use common error handling code in ncp5623_probe() 2024-06-26 16:56:02 +01:00
leds-pwm-multicolor.c leds: pwm-multicolor: Add check for fwnode_property_read_u32 2025-05-29 11:02:36 +02:00
leds-qcom-lpg.c leds: qcom-lpg: Check the return value of regmap_bulk_write() 2026-03-04 07:20:33 -05:00
Makefile leds: Add NCP5623 multi-led driver 2024-03-07 08:48:18 +00:00