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

Commit 53160878 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power_supply: add battery_info and battery_info_id parameters



Add the following power supply parameters so that some battery
information can be stored based on the id passed and notified to
a power supply. These parameters will be typically used by the
userspace to notify some stored battery information back to the
driver to do some calculations.

- POWER_SUPPLY_PROP_BATTERY_INFO
- POWER_SUPPLY_PROP_BATTERY_INFO_ID

For example, if the battery_info_id is 1, value written to the
battery_info parameter will be treated as SOC (state of charge).

CRs-Fixed: 1035402
Change-Id: Ib9287c5669f1a90322636d194a9f235e63c1db47
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 03662e99
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