Files
linux-stable-mirror/drivers/leds
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>
2026-03-04 07:20:33 -05:00
..
2025-04-10 14:39:21 +02:00
2024-06-21 11:41:39 +01:00
2024-09-27 08:18:43 -07:00