]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
extcon: Add new EXTCON_CHG_WPT for Wireless Power Transfer device
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 5 Aug 2016 09:15:46 +0000 (18:15 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Aug 2016 02:17:23 +0000 (11:17 +0900)
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>
drivers/extcon/extcon.c
include/linux/extcon.h

index 10ba876ea77a6dd1822bcb3d8c5966c375237b8f..78298460d1686a79864c57d228ac6af5e114acf9 100644 (file)
@@ -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] = {
index e79b644f41a778fa73f0851e9ac2e39170d36167..461abee969b71cad92ecbf479ed890455b998bb3 100644 (file)
@@ -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