Skip to content
Commit 22fbd73f authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Carles Cufí
Browse files

sensor: max17055: fix v_empty setting



Fix the whole v_empty setting code, this was using a wrong scaling
factor, but also incorrectly clearing the recovery voltage part of the
register.

Change the code to read the previous value and mask out the bits not
used by VE.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent 79ab982f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment