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

Commit 4211b823 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Saravana Kannan
Browse files

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: default avatarBadhri Jagan Sridharan <badhri@google.com>
(cherry picked from commit 84afb7d015a12d7933e1729856e5091166c2ab7c)
Signed-off-by: default avatarrickyniu <rickyniu@google.com>
(cherry picked from commit 50d8261cd912d185c7602bb7f8960b4d4c8e7362)
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
parent 6f11f118
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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),
+1 −0
Original line number Diff line number Diff line
@@ -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,