From: Jenny TC <jenny.tc@intel.com>
To: myungjoo.ham@samsung.com, cw00.choi@samsung.com,
linux-kernel@vger.kernel.org
Cc: jenny.tc@intel.com
Subject: [PATCH] extcon : add charger supported as per spec
Date: Wed, 10 Oct 2012 15:51:48 +0530 [thread overview]
Message-ID: <1349864508-21382-1-git-send-email-jenny.tc@intel.com> (raw)
Add support for cable names as per USB charging spec 1.2
Also add cable name for AC adapter. This standardises the
cable names
Signed-off-by: Jenny TC <jenny.tc@intel.com>
---
drivers/extcon/extcon-class.c | 5 +++++
include/linux/extcon.h | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/drivers/extcon/extcon-class.c b/drivers/extcon/extcon-class.c
index 3d8e825..7188daf 100644
--- a/drivers/extcon/extcon-class.c
+++ b/drivers/extcon/extcon-class.c
@@ -42,6 +42,11 @@
* names that are actually used in your extcon device.
*/
const char *extcon_cable_name[] = {
+ [EXTCON_SDP] = "CHARGER_USB_SDP",
+ [EXTCON_DCP] = "CHARGER_USB_DCP",
+ [EXTCON_CDP] = "CHARGER_USB_CDP",
+ [EXTCON_ACA] = "CHARGER_USB_ACA",
+ [EXTCON_AC] = "CHARGER_AC",
[EXTCON_USB] = "USB",
[EXTCON_USB_HOST] = "USB-Host",
[EXTCON_TA] = "TA",
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index 9be8286..073fd49 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -53,6 +53,11 @@ enum extcon_cable_name {
EXTCON_FAST_CHARGER,
EXTCON_SLOW_CHARGER,
EXTCON_CHARGE_DOWNSTREAM, /* Charging an external device */
+ EXTCON_SDP,
+ EXTCON_DCP,
+ EXTCON_CDP,
+ EXTCON_ACA,
+ EXTCON_AC,
EXTCON_HDMI,
EXTCON_MHL,
EXTCON_DVI,
--
1.7.9.5
reply other threads:[~2012-10-10 4:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1349864508-21382-1-git-send-email-jenny.tc@intel.com \
--to=jenny.tc@intel.com \
--cc=cw00.choi@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®