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

Commit 4a998284 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: power_supply: add HVDCP power supply type



Add power supply type for High voltage dedicated charging port
(HVDCP) chargers.

CRs-Fixed: 775241
Change-Id: I9148bb547640d2d721cedac8f652ec234f9fa4be
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 9f6f9250
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -44,8 +44,8 @@ static ssize_t power_supply_show_property(struct device *dev,
					  struct device_attribute *attr,
					  char *buf) {
	static char *type_text[] = {
		"Unknown", "Battery", "UPS", "Mains", "USB",
		"USB_DCP", "USB_CDP", "USB_ACA", "Wireless", "BMS",
		"Unknown", "Battery", "UPS", "Mains", "USB", "USB_DCP",
		"USB_CDP", "USB_ACA", "USB_HVDCP", "Wireless", "BMS",
		"USB_Parallel", "Wipower"
	};
	static char *status_text[] = {
+1 −0
Original line number Diff line number Diff line
@@ -185,6 +185,7 @@ enum power_supply_type {
	POWER_SUPPLY_TYPE_USB_DCP,	/* Dedicated Charging Port */
	POWER_SUPPLY_TYPE_USB_CDP,	/* Charging Downstream Port */
	POWER_SUPPLY_TYPE_USB_ACA,	/* Accessory Charger Adapters */
	POWER_SUPPLY_TYPE_USB_HVDCP,	/* High Voltage DCP */
	POWER_SUPPLY_TYPE_WIRELESS,	/* Accessory Charger Adapters */
	POWER_SUPPLY_TYPE_BMS,		/* Battery Monitor System */
	POWER_SUPPLY_TYPE_USB_PARALLEL,		/* USB Parallel Path */