Skip to content
Commit 581045ed authored by Yassine Oudjana's avatar Yassine Oudjana Committed by Sebastian Reichel
Browse files

power: supply: Reset err after not finding static battery



Otherwise power_supply_get_battery_info always returns -ENODEV
on devices that do not have a static battery, even when a simple
battery is found.

Fixes: c8aee3f4 ("power: supply: Static data for Samsung batteries")
Signed-off-by: default avatarYassine Oudjana <y.oudjana@protonmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 5c7d28c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment