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

Aidan MacDonald posted 5 patches 2 years, 6 months ago
drivers/power/supply/axp20x_usb_power.c | 285 +++++++++++-------------
1 file changed, 130 insertions(+), 155 deletions(-)
[PATCH v1 0/5] AXP20x USB power supply remove use of variant IDs
Posted by Aidan MacDonald 2 years, 6 months ago
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