diff options
author | 2023-04-15 20:23:35 +0200 | |
---|---|---|
committer | 2023-05-08 15:29:12 +0200 | |
commit | 35092c5819f8c5acc7bafe3fdbb13d6307c4f5e1 (patch) | |
tree | b0c4f5d108f761248eae87248f4a5075bc054fe7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | power: supply: bq27xxx: Fix poll_interval handling and races on remove (diff) | |
download | linux-rng-35092c5819f8c5acc7bafe3fdbb13d6307c4f5e1.tar.xz linux-rng-35092c5819f8c5acc7bafe3fdbb13d6307c4f5e1.zip |
power: supply: bq27xxx: Add cache parameter to bq27xxx_battery_current_and_status()
Add a cache parameter to bq27xxx_battery_current_and_status() so that
it can optionally use cached flags instead of re-reading them itself.
This is a preparation patch for making bq27xxx_battery_update() check
the status and have it call power_supply_changed() on status changes.
Fixes: 297a533b3e62 ("bq27x00: Cache battery registers")
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions