diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-07-17 18:25:28 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-08-05 14:11:04 +0100 |
commit | 32679a7a6b69d9307e6d89b45d554873ca625896 (patch) | |
tree | d68ce10bed958934a8fc4cafd9530d6640d9e264 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 9ff80e2de36d0554e3a6da18a171719fe8663c17 (diff) |
mfd: axp20x: Add supplied-from property to axp288_fuel_gauge cell
The power-supply framework has the notion of one power-supply device
being supplied by another. A typical example of this is a charger
charging a battery.
A tablet getting plugged in to charge (or plugged out) only results in
events seen by the axp288_charger device / MFD cell. Which means that
a change udev-event only gets send for the charger power-supply class
device, not for the battery (the axp288_fuel_gauge device).
The axp288_fuel_gauge does have an external_power_change'd callback
which will generate a change udev-event when called. But before this
commit this never got called because the power-supply core only calls
this when a power-supply class device's supplier changes and the
supplier link from axp288_charger to axp288_fuel_gauge was missing.
Add a "supplied-from" property to axp288_fuel_gauge cell, pointing
to the "axp288_charger" power-supply class device, so that the
axp288_fuel_gauge's external_power_change'd callback gets called on
axp288_charger state changes.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions