mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/5] AXP20x USB power supply remove use of variant IDs
@ 2023-02-18 20:49 Aidan MacDonald
  2023-02-18 20:49 ` [PATCH v1 1/5] power: supply: axp20x_usb_power: Simplify USB current limit handling Aidan MacDonald
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Aidan MacDonald @ 2023-02-18 20:49 UTC (permalink / raw)
  To: sre, wens; +Cc: linux-pm, linux-kernel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-02-18 20:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-18 20:49 [PATCH v1 0/5] AXP20x USB power supply remove use of variant IDs Aidan MacDonald
2023-02-18 20:49 ` [PATCH v1 1/5] power: supply: axp20x_usb_power: Simplify USB current limit handling Aidan MacDonald
2023-02-18 20:49 ` [PATCH v1 2/5] power: supply: axp20x_usb_power: Use regmap fields for VBUS monitor feature Aidan MacDonald
2023-02-18 20:49 ` [PATCH v1 3/5] power: supply: axp20x_usb_power: Use regmap fields for USB BC feature Aidan MacDonald
2023-02-18 20:49 ` [PATCH v1 4/5] power: supply: axp20x_usb_power: Use regmap field for VBUS disabling Aidan MacDonald
2023-02-18 20:49 ` [PATCH v1 5/5] power: supply: axp20x_usb_power: Remove variant IDs from VBUS polling check Aidan MacDonald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®