Commit 0e1507c8 authored by Mark Brown's avatar Mark Brown Committed by Greg Kroah-Hartman

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 18e9a971
...@@ -60,6 +60,7 @@ const char *extcon_cable_name[] = { ...@@ -60,6 +60,7 @@ const char *extcon_cable_name[] = {
[EXTCON_SPDIF_OUT] = "SPDIF-out", [EXTCON_SPDIF_OUT] = "SPDIF-out",
[EXTCON_VIDEO_IN] = "Video-in", [EXTCON_VIDEO_IN] = "Video-in",
[EXTCON_VIDEO_OUT] = "Video-out", [EXTCON_VIDEO_OUT] = "Video-out",
[EXTCON_MECHANICAL] = "Mechanical",
NULL, NULL,
}; };
......
...@@ -66,6 +66,7 @@ enum extcon_cable_name { ...@@ -66,6 +66,7 @@ enum extcon_cable_name {
EXTCON_SPDIF_OUT, EXTCON_SPDIF_OUT,
EXTCON_VIDEO_IN, EXTCON_VIDEO_IN,
EXTCON_VIDEO_OUT, EXTCON_VIDEO_OUT,
EXTCON_MECHANICAL,
}; };
extern const char *extcon_cable_name[]; extern const char *extcon_cable_name[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment