aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi/sleep.h
diff options
context:
space:
mode:
authorHans de Goede2023-04-15 20:23:35 +0200
committerGreg Kroah-Hartman2023-05-30 14:03:21 +0100
commit9108ede08d7ae70fba5626a7823263626f29a317 (patch)
tree9ab4dff9dbaa67e4a9fcfbeea7fe357d781a710f /drivers/acpi/sleep.h
parentd952a1eaafcc5f0351caad5dbe9b5b3300d1d529 (diff)
power: supply: bq27xxx: Add cache parameter to bq27xxx_battery_current_and_status()
commit 35092c5819f8c5acc7bafe3fdbb13d6307c4f5e1 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/acpi/sleep.h')
0 files changed, 0 insertions, 0 deletions