summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2016-08-05 18:15:46 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2016-08-08 11:17:23 +0900
commit7fe95fb889faf07ee438384858d38b820973397e (patch)
treea73d18f097b0ba5a2d82fc6483ad7d4aac4e4ad9
parent9c0595d688e9deb337ff8901bb25281cdb19050b (diff)
downloadop-kernel-dev-7fe95fb889faf07ee438384858d38b820973397e.zip
op-kernel-dev-7fe95fb889faf07ee438384858d38b820973397e.tar.gz
extcon: Add new EXTCON_CHG_WPT for Wireless Power Transfer device
This patchs add the new EXTCON_CHG_WPT for Wireless Power Transfer[1]. The Wireless Power Transfer is the transmission of electronical energy from a power source. The EXTCON_CHG_WPT has the EXTCON_TYPE_CHG. [1] https://en.wikipedia.org/wiki/Wireless_power_transfer Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--drivers/extcon/extcon.c5
-rw-r--r--include/linux/extcon.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index 10ba876..7829846 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -93,6 +93,11 @@ struct __extcon_info {
.id = EXTCON_CHG_USB_SLOW,
.name = "SLOW-CHARGER",
},
+ [EXTCON_CHG_WPT] = {
+ .type = EXTCON_TYPE_CHG,
+ .id = EXTCON_CHG_WPT,
+ .name = "WPT",
+ },
/* Jack external connector */
[EXTCON_JACK_MICROPHONE] = {
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index e79b644..461abee 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -53,6 +53,7 @@
#define EXTCON_CHG_USB_ACA 8 /* Accessory Charger Adapter */
#define EXTCON_CHG_USB_FAST 9
#define EXTCON_CHG_USB_SLOW 10
+#define EXTCON_CHG_WPT 11 /* Wireless Power Transfer */
/* Jack external connector */
#define EXTCON_JACK_MICROPHONE 20
OpenPOWER on IntegriCloud