power: supply: max17042_battery: Use sign_extend32 instead of DIY code
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Apr 2017 18:32:47 +0000 (20:32 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 1 May 2017 10:37:16 +0000 (12:37 +0200)
commitc67c06939ee4a24fcad1235dd9632153533fdd4d
treeaa2196d3f620f12de7b0c6388e629c161cc0eed7
parent7f232af35620fe68746cb3da582062de965b286c
power: supply: max17042_battery: Use sign_extend32 instead of DIY code

Use sign_extend32 to sign-extend variables where necessary instead of
DIY code.

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