diff options
| author | Lubomir Rintel <[email protected]> | 2018-11-16 17:23:47 +0100 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2018-11-19 14:14:46 +0100 |
| commit | ed54ffbe554f0902689fd6d1712bbacbacd11376 (patch) | |
| tree | d329fadd01d065fd7283d4c35f978605e1c67d5f /include/linux | |
| parent | ed60f43d0170e5f589e5285517db2c7b084f7d65 (diff) | |
power: supply: olpc_battery: correct the temperature units
According to [1] and [2], the temperature values are in tenths of degree
Celsius. Exposing the Celsius value makes the battery appear on fire:
$ upower -i /org/freedesktop/UPower/devices/battery_olpc_battery
...
temperature: 236.9 degrees C
Tested on OLPC XO-1 and OLPC XO-1.75 laptops.
[1] include/linux/power_supply.h
[2] Documentation/power/power_supply_class.txt
Fixes: fb972873a767 ("[BATTERY] One Laptop Per Child power/battery driver")
Cc: [email protected]
Signed-off-by: Lubomir Rintel <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions