mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
power_supply: Add types for USB Type C and PD chargers
This adds power supply types for USB chargers defined in the USB Type-C Specification 1.1 and in the USB Power Delivery Specification Revision 2.0 V1.1. The following are added : POWER_SUPPLY_TYPE_USB_TYPE_C, /* Type C Port */ POWER_SUPPLY_TYPE_USB_PD, /* Power Delivery Port */ POWER_SUPPLY_TYPE_USB_PD_DRP, /* PD Dual Role Port */ Signed-off-by: Benson Leung <[email protected]> [tomeu: remove the mention to Type C from the comments] Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alec Berg <[email protected]> Reviewed-by: Vincent Palatin <[email protected]> Reviewed-by: Todd Broch <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
64024ac7bb
commit
6659b55dae
2 changed files with 5 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ static ssize_t power_supply_show_property(struct device *dev,
|
|||
char *buf) {
|
||||
static char *type_text[] = {
|
||||
"Unknown", "Battery", "UPS", "Mains", "USB",
|
||||
"USB_DCP", "USB_CDP", "USB_ACA"
|
||||
"USB_DCP", "USB_CDP", "USB_ACA", "USB_C",
|
||||
"USB_PD", "USB_PD_DRP"
|
||||
};
|
||||
static char *status_text[] = {
|
||||
"Unknown", "Charging", "Discharging", "Not charging", "Full"
|
||||
|
|
|
|||
Loading…
Reference in a new issue