diff options
author | Csókás, Bence <csokas.bence@prolan.hu> | 2024-11-19 19:07:34 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-12-05 01:06:21 +0100 |
commit | 98c57141319832861e141059aa46ee5fec3b9445 (patch) | |
tree | e207264d6c72446ab675ebe75faf1a78dd26c511 /tools/perf/scripts/python/syscall-counts.py | |
parent | f29a749d01dc136ee6e08afafebbccc389ef5b05 (diff) |
power: ip5xxx_power: Fix return value on ADC read errors
If ADC read returns an error, the return value was silently ignored,
execution continued and an uninitialized value and a return code of 0
was passed back to userspace. The only exception was
POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT, which bailed out correctly.
Fix returns for the other cases as well.
Fixes: 75853406fa27 ("power: supply: Add a driver for Injoinic power bank ICs")
Signed-off-by: Csókás, Bence <csokas.bence@prolan.hu>
Link: https://lore.kernel.org/r/20241119180741.2237692-2-csokas.bence@prolan.hu
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions