Re: [PATCH] power: supply: Reset err after not finding static battery
From: Linus Walleij
Date: Tue Mar 29 2022 - 12:20:12 EST
On Tue, Mar 29, 2022 at 5:34 AM Yassine Oudjana
<y.oudjana@xxxxxxxxxxxxxx> wrote:
> 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: c8aee3f41cb8 ("power: supply: Static data for Samsung batteries")
> Signed-off-by: Yassine Oudjana <y.oudjana@xxxxxxxxxxxxxx>
Quick and nice fix, thanks a lot!
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij