Skip to content

Commit

Permalink
extcon: Add EXTCON_MECHANICAL cable type for physical presence
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Greg Kroah-Hartman committed May 4, 2012
1 parent 18e9a97 commit 0e1507c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/extcon/extcon_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
1 change: 1 addition & 0 deletions include/linux/extcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[];

Expand Down

0 comments on commit 0e1507c

Please sign in to comment.