diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-11-28 12:28:54 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2023-01-03 02:04:26 +0300 |
commit | 4e9498b835ab31b83fc32fae4f77426f668010ac (patch) | |
tree | c75d52db93e9b4be4ad5e7e59a186ebf0e52d803 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | dee0df8496c1d13afd1bb447d284e1a76eb8e83e (diff) | |
download | linux-4e9498b835ab31b83fc32fae4f77426f668010ac.tar.xz |
power: supply: bq25890: Support boards with more then one charger IC
Some devices, such as the Lenovo Yoga Tab 3 Pro (YT3-X90F) have
multiple batteries with a separate bq25890 charger for each battery.
This requires the bq25890_charger code to use a unique name per
registered power_supply class device, rather then hardcoding
"bq25890-charger" as power_supply class device name.
Add a "-%d" prefix to the name, allocated through idr in the same way
as several other power_supply drivers are already doing this.
Note this also updates: drivers/platform/x86/x86-android-tablets.c
which refers to the charger by power_supply-class-device-name for
the purpose of setting the "supplied-from" property on the fuel-gauge
to this name.
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions