Re: [PATCH] power: supply: max17042_battery: Fix vmin assigned instead of vmax in DT parsing
From: Krzysztof Kozlowski
Date: Tue Sep 01 2026 - 01:41:30 EST
On 01/09/2026 07:36, Xueqin Luo wrote:
> The else branch of the "maxim,over-volt" property check assigns the
> parsed value to chip->vmin instead of chip->vmax, so chip->vmin is
> overwritten and chip->vmax never gets the DT value.
>
> Fixes: 6a3b47a5a5fc ("power: supply: Match DT value types")
> Signed-off-by: Xueqin Luo <luoxueqin@xxxxxxxxxx>
> ---
> drivers/power/supply/max17042_battery.c | 2 +-
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Best regards,
Krzysztof