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

Commit ae0dcdcc authored by Umang Agrawal's avatar Umang Agrawal
Browse files

power_supply: Add VOLTAGE_MAX_LIMIT power supply property



Add power supply property VOLTAGE_MAX_LIMIT in usb_psy to allow
external entities to impose limitation on the maximum USB adapter
output voltage.

Change-Id: I3d05188f11ccd0c47cfca626e528bbe2e30582ae
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent c2ca585d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -396,6 +396,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(therm_icl_limit),
	POWER_SUPPLY_ATTR(dc_reset),
	POWER_SUPPLY_ATTR(scale_mode_en),
	POWER_SUPPLY_ATTR(voltage_max_limit),
	/* Charge pump properties */
	POWER_SUPPLY_ATTR(cp_status1),
	POWER_SUPPLY_ATTR(cp_status2),
+1 −0
Original line number Diff line number Diff line
@@ -327,6 +327,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_THERM_ICL_LIMIT,
	POWER_SUPPLY_PROP_DC_RESET,
	POWER_SUPPLY_PROP_SCALE_MODE_EN,
	POWER_SUPPLY_PROP_VOLTAGE_MAX_LIMIT,
	/* Charge pump properties */
	POWER_SUPPLY_PROP_CP_STATUS1,
	POWER_SUPPLY_PROP_CP_STATUS2,