power: supply: axp288_charger: Pick lower input current limit not higher
authorHans de Goede <hdegoede@redhat.com>
Tue, 26 Dec 2017 12:59:06 +0000 (13:59 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 8 Jan 2018 17:38:57 +0000 (18:38 +0100)
commit9563d054168c475b43bd5165dd952ea3187cac6a
tree295c0217d7e81e3252ffc388ccbbbd7ff777533c
parentd1ce7e5853dcb9f9a13e4b57701e5133391454a7
power: supply: axp288_charger: Pick lower input current limit not higher

The code before this commit would pick 900 mA when asking for an input
current limit of 600mA, rather then 500 mA, not good.

While touching almost all code using the silly xxxMA defines anyways,
also get rid of these simply typing out the numbers and switch the
unit to uA as that is the psy class standard unit for currents.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/axp288_charger.c