]> git.baikalelectronics.ru Git - kernel.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)
commit9f06ed78d1767746e48f75e44ded51289b4d731f
treebee063a3bd6f113a694e2031e6b3203838c58bb7
parent3700e3917f9934b0738db3671ba6cc4fae862bcf
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