Re: [PATCH v2] power: supply: qcom_battmgr: Report battery capacity

From: Sebastian Reichel
Date: Sat Jun 21 2025 - 20:55:48 EST



On Wed, 28 May 2025 11:23:29 +0000, Kornel Dulęba wrote:
> Battery charge can be reported in several different ways. One of them is
> is charge percentage referred to as POWER_SUPPLY_PROP_CAPACITY in the
> power supply API. Currently the driver reports the capacity in this way
> on SM8350, but not on the newer variants referred to as SC8280XP in the
> driver. Although this is not a bug in itself, not reporting the
> percentage can confuse some userspace consumers.
> Mimic what is done in the ACPI driver (drivers/acpi/battery.c) and
> calculate the percentage capacity by dividing the current charge value
> by the full charge.
>
> [...]

Applied, thanks!

[1/1] power: supply: qcom_battmgr: Report battery capacity
commit: 3f87baacea4d185071655f9b0baf07abb6237fcd

Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>