Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 499b30f7 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-smbcharger: support reading temperature and current



Currently, POWER_SUPPLY_PROP_TEMP and POWER_SUPPLY_PROP_CURRENT_NOW are
only exported by the bms power supply because they are provided by the
fuel gauge peripheral. However, android looks for temperature and
current under /sys/class/power_supply/battery/, which currently does not
support reading the temperature and current.

Fix this by exporting these properties in the battery power supply as
well, by making them read through to the bms power supply.

CRs-Fixed: 712920
Change-Id: I8832ae3ae5f0294efac08d7424e3a49233fa6a52
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 1ff026a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment