Commit 54039b0a authored by Hans de Goede's avatar Hans de Goede Committed by openeuler-sync-bot
Browse files

power: supply: bq27xxx: Move bq27xxx_battery_update() down

stable inclusion
from stable-v5.10.182
commit 6ed541254f4bdd5aca6ce8993587edecd48086cd
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8GJZJ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6ed541254f4bdd5aca6ce8993587edecd48086cd



--------------------------------

[ Upstream commit ff4c4a2a ]

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: 297a533b ("bq27x00: Cache battery registers")
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit d658735e)
parent aa6709d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment