regulator: max8998: Add charger regulator
authorJonathan Bakker <xc-racer2@live.ca>
Sat, 16 May 2020 19:47:59 +0000 (12:47 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 22 May 2020 12:11:05 +0000 (13:11 +0100)
commit4ffea5e083f8125fe273cf331ecb10d901eb64a2
tree1d92539528721b1a79e29156043a323dedf5ee94
parenta24490e0170e4cc6d4fd1f37691f19a106b694ae
regulator: max8998: Add charger regulator

The max8998 has a current regulator for charging control.  The
charger driver in drivers/power/supply/max8998_charger.c has a
comment in it stating that 'charger control is done by a current
regulator "CHARGER"', but this regulator was never added until
now.

The current values have been extracted from a downstream driver
for the SGH-T959V.

Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Link: https://lore.kernel.org/r/BN6PR04MB0660E1F4A3D5A348BE88311CA3BA0@BN6PR04MB0660.namprd04.prod.outlook.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max8998.c
include/linux/mfd/max8998.h