* [PATCH 1/2] extcon: Add new EXTCON_CHG_USB_PD type for USB Power Delivery
@ 2017-01-06 20:40 chanwoo
2017-01-06 20:40 ` [PATCH 2/2] extcon: Modify the name of EXTCON_USB_HOST connector chanwoo
0 siblings, 1 reply; 2+ messages in thread
From: chanwoo @ 2017-01-06 20:40 UTC (permalink / raw)
To: linux-kernel; +Cc: cw00.choi, myungjoo.ham
From: Chanwoo Choi <cw00.choi@samsung.com>
This patch adds the new EXTCON_CHG_USB_PD for USB PD (Power Delivery)[1].
The USB Power Delivery specification specifies that USB cable provides
the increased power more than 7.5W to device with larger power demand.
The EXTCON_CHG_USB_PD has the EXTCON_TYPE_CHG and EXTCON_TYPE_USB type.
[1] https://en.wikipedia.org/wiki/USB#PD
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
drivers/extcon/extcon.c | 5 +++++
include/linux/extcon.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index 591582b..768e367 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -99,6 +99,11 @@ struct __extcon_info {
.id = EXTCON_CHG_WPT,
.name = "WPT",
},
+ [EXTCON_CHG_USB_PD] = {
+ .type = EXTCON_TYPE_CHG | EXTCON_TYPE_USB,
+ .id = EXTCON_CHG_USB_PD,
+ .name = "PD",
+ },
/* Jack external connector */
[EXTCON_JACK_MICROPHONE] = {
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index 242157c..7010fb0 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -65,6 +65,7 @@
#define EXTCON_CHG_USB_FAST 9
#define EXTCON_CHG_USB_SLOW 10
#define EXTCON_CHG_WPT 11 /* Wireless Power Transfer */
+#define EXTCON_CHG_USB_PD 12 /* USB Power Delivery */
/* Jack external connector */
#define EXTCON_JACK_MICROPHONE 20
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] extcon: Modify the name of EXTCON_USB_HOST connector
2017-01-06 20:40 [PATCH 1/2] extcon: Add new EXTCON_CHG_USB_PD type for USB Power Delivery chanwoo
@ 2017-01-06 20:40 ` chanwoo
0 siblings, 0 replies; 2+ messages in thread
From: chanwoo @ 2017-01-06 20:40 UTC (permalink / raw)
To: linux-kernel; +Cc: cw00.choi, myungjoo.ham
From: Chanwoo Choi <cw00.choi@samsung.com>
This patch renames the EXTCON_USB_HOST by using '-' char because
the name of all external connector use the '-' char instead of '_' char.
- "USB_HOST" -> "USB-HOST"
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
drivers/extcon/extcon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index 768e367..09ac5e7 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -60,7 +60,7 @@ struct __extcon_info {
[EXTCON_USB_HOST] = {
.type = EXTCON_TYPE_USB,
.id = EXTCON_USB_HOST,
- .name = "USB_HOST",
+ .name = "USB-HOST",
},
/* Charging external connector */
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-06 20:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-06 20:40 [PATCH 1/2] extcon: Add new EXTCON_CHG_USB_PD type for USB Power Delivery chanwoo
2017-01-06 20:40 ` [PATCH 2/2] extcon: Modify the name of EXTCON_USB_HOST connector chanwoo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome