extcon: Add documentation for EXTCON_CHG_USB_* and EXTCON_USB_*
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 21 Dec 2016 06:10:47 +0000 (14:10 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Jan 2017 01:04:11 +0000 (10:04 +0900)
Current there is both "EXTCON_USB" and "EXTCON_CHG_USB_SDP" which
both seem to suggest a standard downstream port. But there is no
documentation describing how these relate.

Thus add documentation to describe EXTCON_CHG_USB_SDP should always
appear together with EXTCON_USB, and EXTCON_CHG_USB_ACA would normally
appear with EXTCON_USB_HOST.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/linux/extcon.h

index b871c0cb1f02b277df53f835a1d51fe3c99fff28..00201230bea524fc3e47109a5e6be72e50b98733 100644 (file)
 #define EXTCON_USB             1
 #define EXTCON_USB_HOST                2
 
-/* Charging external connector */
+/*
+ * Charging external connector
+ *
+ * When one SDP charger connector was reported, we should also report
+ * the USB connector, which means EXTCON_CHG_USB_SDP should always
+ * appear together with EXTCON_USB. The same as ACA charger connector,
+ * EXTCON_CHG_USB_ACA would normally appear with EXTCON_USB_HOST.
+ */
 #define EXTCON_CHG_USB_SDP     5       /* Standard Downstream Port */
 #define EXTCON_CHG_USB_DCP     6       /* Dedicated Charging Port */
 #define EXTCON_CHG_USB_CDP     7       /* Charging Downstream Port */