diff options
| author | 2026-10-09 18:24:29 +0700 | |
|---|---|---|
| committer | 2026-10-12 20:16:27 +0200 | |
| commit | 36b0abe904ac9cbdce6161d9c7c0bcac963bb3fe (patch) | |
| tree | ce7b3e972d44c0686334e90a63274f29d469b5a0 /scripts/Makefile.thinlto | |
| parent | power: supply: sbs-battery: disable polling before supply teardown (diff) | |
power: supply: generic-adc-battery: Propagate charged GPIO errors
devm_gpiod_get_optional() may return an error pointer such as
-EPROBE_DEFER, but gab_probe() only checks for NULL. The error
pointer is then passed to gpiod_to_irq() and the original error,
including -EPROBE_DEFER, is lost.
Check the return value and propagate errors from the charged GPIO lookup.
Fixes: b0327ffb133f ("power: supply: generic-adc-battery: Use GPIO descriptors")
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20261009112429.33318-1-phucduc.bui@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
