ANDROID: GKI: power: supply: Add VOLTAGE_STEP property

This property exposes the step size (in uV) to be used while
incrementing or decrementing voltage of a PSY.

Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
(cherry picked from commit 4cde627bd0)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: Ic70e933daf6b6f3bafc0f0fe77064c8395e611d1
This commit is contained in:
Guru Das Srinagesh
2019-10-16 13:21:26 -07:00
committed by Mark Salyzyn
parent abcee9a52c
commit d46562ac69
2 changed files with 2 additions and 0 deletions

View File

@ -483,6 +483,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(resistance_avg),
POWER_SUPPLY_ATTR(batt_res_filt_cnts),
POWER_SUPPLY_ATTR(aicl_done),
POWER_SUPPLY_ATTR(voltage_step),
/* Charge pump properties */
POWER_SUPPLY_ATTR(cp_status1),
POWER_SUPPLY_ATTR(cp_status2),

View File

@ -348,6 +348,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_RESISTANCE_AVG,
POWER_SUPPLY_PROP_RES_FILTER_COUNT,
POWER_SUPPLY_PROP_AICL_DONE,
POWER_SUPPLY_PROP_VOLTAGE_STEP,
/* Charge pump properties */
POWER_SUPPLY_PROP_CP_STATUS1,
POWER_SUPPLY_PROP_CP_STATUS2,