ANDROID: GKI: power_supply: Add PROP_MOISTURE_DETECTION_ENABLED

Add a power supply prop to enable/disable moisture detection.

Bug: 148999666
Change-Id: Ie5b3b721a7f8513990de798288fbf4dea361e5ed
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
(cherry picked from commit 84afb7d015a12d7933e1729856e5091166c2ab7c)
Signed-off-by: rickyniu <rickyniu@google.com>
(cherry picked from commit 50d8261cd912d185c7602bb7f8960b4d4c8e7362)
Signed-off-by: Saravana Kannan <saravanak@google.com>
This commit is contained in:
Badhri Jagan Sridharan 2018-12-12 11:22:21 -08:00 committed by Saravana Kannan
parent 6f11f11820
commit 4211b82346
2 changed files with 2 additions and 0 deletions

View file

@ -505,6 +505,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(irq_status),
POWER_SUPPLY_ATTR(parallel_output_mode),
POWER_SUPPLY_ATTR(alignment),
POWER_SUPPLY_ATTR(moisture_detection_enabled),
/* Local extensions of type int64_t */
POWER_SUPPLY_ATTR(charge_counter_ext),
POWER_SUPPLY_ATTR(charge_charger_state),

View file

@ -388,6 +388,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_IRQ_STATUS,
POWER_SUPPLY_PROP_PARALLEL_OUTPUT_MODE,
POWER_SUPPLY_PROP_ALIGNMENT,
POWER_SUPPLY_PROP_MOISTURE_DETECTION_ENABLE,
/* Local extensions of type int64_t */
POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
POWER_SUPPLY_PROP_CHARGE_CHARGER_STATE,