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: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy 2020-08-28 15:18:23 -07:00 committed by Anjelique Melendez
parent 3041e580e8
commit 27cc913580

View File

@ -774,7 +774,7 @@ static enum power_supply_property wls_props[] = {
static const struct power_supply_desc wls_psy_desc = {
.name = "wireless",
.type = POWER_SUPPLY_TYPE_MAINS,
.type = POWER_SUPPLY_TYPE_WIRELESS,
.properties = wls_props,
.num_properties = ARRAY_SIZE(wls_props),
.get_property = wls_psy_get_prop,