summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-02 10:38:51 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-04 16:25:29 -0700
commit0e1507c8453081c9a6a515b92f89dd00b68f5c09 (patch)
tree427d1f3bc8a1115aa9529f419ca3ee8458c9b82c
parent18e9a971c7fb17dab079305a23af5bb57b0706b1 (diff)
downloadop-kernel-dev-0e1507c8453081c9a6a515b92f89dd00b68f5c09.zip
op-kernel-dev-0e1507c8453081c9a6a515b92f89dd00b68f5c09.tar.gz
extcon: Add EXTCON_MECHANICAL cable type for physical presence
Some accessory detection mechanisms are able to detect that something is physically present in the socket separately to identifying what is present in the socket. This information can be useful to applications, for example allowing them to indicate that a potentially broken accessory is present, so provide a standard way to report it to userspace. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/extcon/extcon_class.c1
-rw-r--r--include/linux/extcon.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/extcon/extcon_class.c b/drivers/extcon/extcon_class.c
index 4657ad3..f598a70 100644
--- a/drivers/extcon/extcon_class.c
+++ b/drivers/extcon/extcon_class.c
@@ -60,6 +60,7 @@ const char *extcon_cable_name[] = {
[EXTCON_SPDIF_OUT] = "SPDIF-out",
[EXTCON_VIDEO_IN] = "Video-in",
[EXTCON_VIDEO_OUT] = "Video-out",
+ [EXTCON_MECHANICAL] = "Mechanical",
NULL,
};
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index 6495f77..cdd4014 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -66,6 +66,7 @@ enum extcon_cable_name {
EXTCON_SPDIF_OUT,
EXTCON_VIDEO_IN,
EXTCON_VIDEO_OUT,
+ EXTCON_MECHANICAL,
};
extern const char *extcon_cable_name[];
OpenPOWER on IntegriCloud