]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: axp20x_usb_power: add function to get max current
authorQuentin Schulz <quentin.schulz@bootlin.com>
Tue, 16 Apr 2019 06:40:21 +0000 (14:40 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 17 Apr 2019 21:23:15 +0000 (23:23 +0200)
commitaf7e8d07693712e3944ef0138fc428624e260c78
treebee063a3bd6f113a694e2031e6b3203838c58bb7
parent97ec136e7124fa12cf56ce706993e747c5f99a20
power: supply: axp20x_usb_power: add function to get max current

To prepare for a new PMIC, factor out the code responsible of returning
the maximum current to axp20x_get_current_max.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp20x_usb_power.c