power_supply: Add types for USB Type C and PD chargers
authorBenson Leung <bleung@chromium.org>
Fri, 12 Feb 2016 12:56:59 +0000 (13:56 +0100)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Feb 2016 06:02:32 +0000 (07:02 +0100)
commit6659b55dae09b2042d8cdd0f4576502c3e81957c
tree9055b8e604590b3545402c7c2a30e74977cd9ed1
parent64024ac7bb82c41265e7ba08235591d9a2709dfc
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 <bleung@chromium.org>
[tomeu: remove the mention to Type C from the comments]
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h