Skip to content

Commit 0e1507c

Browse files
brooniegregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 18e9a97 commit 0e1507c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/extcon/extcon_class.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const char *extcon_cable_name[] = {
6060
[EXTCON_SPDIF_OUT] = "SPDIF-out",
6161
[EXTCON_VIDEO_IN] = "Video-in",
6262
[EXTCON_VIDEO_OUT] = "Video-out",
63+
[EXTCON_MECHANICAL] = "Mechanical",
6364

6465
NULL,
6566
};

include/linux/extcon.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ enum extcon_cable_name {
6666
EXTCON_SPDIF_OUT,
6767
EXTCON_VIDEO_IN,
6868
EXTCON_VIDEO_OUT,
69+
EXTCON_MECHANICAL,
6970
};
7071
extern const char *extcon_cable_name[];
7172

0 commit comments

Comments
 (0)