power: supply: max8998_charger: Correct ONLINE and add STATUS props
authorJonathan Bakker <xc-racer2@live.ca>
Sat, 16 May 2020 22:35:44 +0000 (15:35 -0700)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 19 Jun 2020 17:58:23 +0000 (19:58 +0200)
commit5d809cb28056221e1b13459f7a2ddfa28305b74f
tree8ab46d68da71f6d57622ed98aba6fd71451cf363
parent1a37a039711610dd53ec03d8cab9e81875338225
power: supply: max8998_charger: Correct ONLINE and add STATUS props

The ONLINE prop should be when the charger is present (ie able to
charge), however, it was for when it was actually charging or not.
Instead, add the STATUS prop to show whether charging is actually
going on or not.

The magic numbers have been ported from a downstream kernel for the
SGH-T959V.

Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max8998_charger.c