]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b20627fefc52fa0d5c01065201fdbf72c97a333
tree8ab46d68da71f6d57622ed98aba6fd71451cf363
parentfc5cd8973f619300aa2e803b54742795167b4ceb
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