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

Commit 2cb3817a authored by Harry Yang's avatar Harry Yang
Browse files

power: smb5-lib: Fix wireless property in reading wireless VOUT



Power supply property POWER_SUPPLY_PROP_VOLTAGE_MAX is misused in getting
the current wireless output voltage from wireless psy. Replace it with
POWER_SUPPLY_PROP_INPUT_VOLTAGE_REGULATION.

Change-Id: Ibfb6c5b578fcc13e6c11e42c2d17e49ce9f19318
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent 9ae54a8e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1971,10 +1971,10 @@ int smblib_get_prop_dc_voltage_now(struct smb_charger *chg,
	}

	rc = power_supply_get_property(chg->wls_psy,
				POWER_SUPPLY_PROP_VOLTAGE_MAX,
				POWER_SUPPLY_PROP_INPUT_VOLTAGE_REGULATION,
				val);
	if (rc < 0)
		dev_err(chg->dev, "Couldn't get POWER_SUPPLY_PROP_VOLTAGE_MAX, rc=%d\n",
		dev_err(chg->dev, "Couldn't get POWER_SUPPLY_PROP_VOLTAGE_REGULATION, rc=%d\n",
				rc);
	return rc;
}