power: supply: max17047_battery: The temp alert values are 8-bit 2's complement
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Apr 2017 18:32:48 +0000 (20:32 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 1 May 2017 10:37:21 +0000 (12:37 +0200)
commit2814913c3136b41084a896c90062bd9b87672dff
treeae1956fb3969362f041d54f7cc0974780091acb5
parentc67c06939ee4a24fcad1235dd9632153533fdd4d
power: supply: max17047_battery: The temp alert values are 8-bit 2's complement

The temp alert values are 8-bit 2's complement, so sign-extend them
before reporting them back to the caller.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/max17042_battery.c