mbox series

[0/7] Cleanup SBS power-supply drivers

Message ID 20210309180407.650943-1-sebastian.reichel@collabora.com
Headers show
Series Cleanup SBS power-supply drivers | expand

Message

Sebastian Reichel March 9, 2021, 6:04 p.m. UTC
Hi,

This is a collection of cleanups for the SBS battery/charger/manager.
The series does three things:

1. remove legacy gpio usage (only headers needed updates)
2. simple code cleanups
3. remove probe defer message logging

To provide some more data for the last point: The following messages
appeared on a SBS battery using system if the battery driver is probed
before the charger at default loglevel and will be degraded to debug
level:

[    0.348325] power_supply sbs-0-000b: Not all required supplies found, defer probe
[    0.348337] sbs-battery 0-000b: sbs_probe: Failed to register power supply
[    0.588072] power_supply sbs-0-000b: sbs-0-000b: Found supply : battery-charger

-- Sebastian

Sebastian Reichel (7):
  power: supply: sbs-battery: use dev_err_probe
  power: supply: sbs-charger: use dev_err_probe
  power: supply: sbs-charger: drop unused gpio includes
  power: supply: sbs-manager: use managed i2c_mux_adapter
  power: supply: sbs-manager: use dev_err_probe
  power: supply: sbs-manager: update gpio include
  power: supply: core: reduce loglevel for probe defer info

 drivers/power/supply/power_supply_core.c |  4 +-
 drivers/power/supply/sbs-battery.c       | 28 +++------
 drivers/power/supply/sbs-charger.c       | 24 +++-----
 drivers/power/supply/sbs-manager.c       | 78 +++++++++---------------
 4 files changed, 47 insertions(+), 87 deletions(-)