power: supply: axp20x_usb_power: add 100mA max current limit for AXP223
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Fri, 9 Dec 2016 11:04:13 +0000 (12:04 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 20:59:46 +0000 (21:59 +0100)
commit50111d3f886ac95cb76aefb6ceb0d1b6e78eefc0
tree5cbdbc34781af0c8e259935fa65bd6aee0bd3b38
parentac88bebedae47ce2254f003d7a07dca14ca0c3eb
power: supply: axp20x_usb_power: add 100mA max current limit for AXP223

The X-Powers AXP223 shares most of its behaviour with the AXP221 PMIC
but allows the VBUS power supply max current to be set to 100mA (like
the AXP209 PMIC).

This basically adds a new compatible to the VBUS power supply driver and
adds a check on the compatible when setting current max limit.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/axp20x_usb_power.c