]> git.itanic.dy.fi Git - linux-stable/commit
power: supply: bq27xxx: Move bq27xxx_battery_update() down
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Apr 2023 18:23:36 +0000 (20:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 13:03:21 +0000 (14:03 +0100)
commit3c573e7910c60333bab80a51f5bfb56b1722d2d0
tree7c796ae91d2a934c55efea2c9ef8645e5043a69d
parent9108ede08d7ae70fba5626a7823263626f29a317
power: supply: bq27xxx: Move bq27xxx_battery_update() down

commit ff4c4a2a4437a6d03787c7aafb2617f20c3ef45f upstream.

Move the bq27xxx_battery_update() functions to below
the bq27xxx_battery_current_and_status() function.

This is just moving a block of text, no functional changes.

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>
drivers/power/supply/bq27xxx_battery.c