]> git.ipfire.org Git - thirdparty/linux.git/commit
leds: qcom-lpg: Check the return value of regmap_bulk_write()
authorHaotian Zhang <vulab@iscas.ac.cn>
Thu, 8 Jan 2026 17:51:33 +0000 (01:51 +0800)
committerLee Jones <lee@kernel.org>
Wed, 4 Feb 2026 09:21:05 +0000 (09:21 +0000)
commitf42033b5ce8c79c5db645916c9a72ee3e10cecfa
tree9c7ec5db554a470af193efb381683d59c71b50d9
parentec924cd7b78ee2d46da306e4e95faf4b155dc94b
leds: qcom-lpg: Check the return value of regmap_bulk_write()

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: 24e2d05d1b68 ("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>
drivers/leds/rgb/leds-qcom-lpg.c