[PATCH v1 0/5] AXP20x USB power supply remove use of variant IDs

From: Aidan MacDonald
Date: Sat Feb 18 2023 - 15:49:58 EST


The goal of this series is to remove the driver's dependence on
variant IDs, because they are hard to maintain and make it more
difficult to add support for new chip variants.

Regmap fields are used to replace ID checks and handle bits/fields
that may differ (or not exist at all) on certain variants.

Aidan MacDonald (5):
power: supply: axp20x_usb_power: Simplify USB current limit handling
power: supply: axp20x_usb_power: Use regmap fields for VBUS monitor
feature
power: supply: axp20x_usb_power: Use regmap fields for USB BC feature
power: supply: axp20x_usb_power: Use regmap field for VBUS disabling
power: supply: axp20x_usb_power: Remove variant IDs from VBUS polling
check

drivers/power/supply/axp20x_usb_power.c | 285 +++++++++++-------------
1 file changed, 130 insertions(+), 155 deletions(-)

--
2.39.2