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:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment