提交 9c727241 编写于 作者: D David Lechner 提交者: Sebastian Reichel

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: NDavid Lechner <david@lechnology.com>
Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.co.uk>
上级 6e92cecb
......@@ -52,7 +52,7 @@ static int lego_ev3_battery_get_property(struct power_supply *psy,
return ret;
val->intval *= 2000;
val->intval += 200000;
val->intval += 50000;
/* plus adjust for shunt resistor drop */
ret = iio_read_channel_processed(batt->iio_i, &val2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册