From 63c6ce27ba2ee5360d8ea5ef9dcd8589789b5cde Mon Sep 17 00:00:00 2001 From: Wu Liang feng Date: Wed, 6 Jul 2016 09:48:23 +0800 Subject: [PATCH] power_supply: Add new type for USB chargers 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 --- include/linux/power_supply.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 1c075892c6fd..d43778bd6a07 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -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 { -- 2.34.1