power: supply: lego_ev3_battery: fix Vce offset
authorDavid Lechner <david@lechnology.com>
Fri, 20 Jul 2018 20:19:44 +0000 (15:19 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Sun, 22 Jul 2018 21:33:43 +0000 (23:33 +0200)
commit9c7272412bc556f6af2a89e0f1660dacb44e3b1d
treef64457adabcb29593b72b54e53cb934a5998cc8c
parent6e92cecb1e1b073c0cbd1e0e0f338803e0df1924
power: supply: lego_ev3_battery: fix Vce offset

This fixes the value that accounts for the Vce of a transistor in the
LEGO MINDSTORMS EV3 power supply driver. The old value (200mV) was the
max value from the data sheet. After testing, the actual value has been
found to be 50mV. By using 50mV we get a more accurate voltage
indication.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/lego_ev3_battery.c