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: NHans de Goede <hdegoede@redhat.com> Reviewed-by: NKrzysztof Kozlowski <krzk@kernel.org> Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.co.uk>
Showing
想要评论请 注册 或 登录