power_supply: Add new type for USB chargers
authorWu Liang feng <wulf@rock-chips.com>
Wed, 6 Jul 2016 01:48:23 +0000 (09:48 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Thu, 14 Jul 2016 07:04:49 +0000 (15:04 +0800)
This adds a power supply type for special USB charger,
this kind of USB charger is similar to Dedicated Charging
Port, but not a standard DCP because of D+/D- not short.

Change-Id: I7c478da642b43465a9de65c8b5d7b8250c0da037
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
include/linux/power_supply.h

index 1c075892c6fdfb10518a52521c23e8a4e5f130b0..d43778bd6a07579281ea464d9e15a406a4031831 100644 (file)
@@ -170,6 +170,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_FLOATING, /* DCP without shorting D+/D- */
 };
 
 enum power_supply_notifier_events {