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

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

power: supply: qti_battery_charger: Change wireless power supply type



Now that the power supply framework has POWER_SUPPLY_TYPE_WIRELESS
change the wireless power supply type from MAINS to WIRELESS. This
would help android healthd to show "chg=w" rather than "chg=a" in
logs when a wireless charger is connected.

Change-Id: I871779aa806f775e2cdf1e0994593fc991fe77f9
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 3a1174ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -774,7 +774,7 @@ static enum power_supply_property wls_props[] = {


static const struct power_supply_desc wls_psy_desc = {
static const struct power_supply_desc wls_psy_desc = {
	.name			= "wireless",
	.name			= "wireless",
	.type			= POWER_SUPPLY_TYPE_MAINS,
	.type			= POWER_SUPPLY_TYPE_WIRELESS,
	.properties		= wls_props,
	.properties		= wls_props,
	.num_properties		= ARRAY_SIZE(wls_props),
	.num_properties		= ARRAY_SIZE(wls_props),
	.get_property		= wls_psy_get_prop,
	.get_property		= wls_psy_get_prop,