Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mark Brown and committed by
Greg Kroah-Hartman
0e1507c8 18e9a971

+2
+1
drivers/extcon/extcon_class.c
··· 60 60 [EXTCON_SPDIF_OUT] = "SPDIF-out", 61 61 [EXTCON_VIDEO_IN] = "Video-in", 62 62 [EXTCON_VIDEO_OUT] = "Video-out", 63 + [EXTCON_MECHANICAL] = "Mechanical", 63 64 64 65 NULL, 65 66 };
+1
include/linux/extcon.h
··· 66 66 EXTCON_SPDIF_OUT, 67 67 EXTCON_VIDEO_IN, 68 68 EXTCON_VIDEO_OUT, 69 + EXTCON_MECHANICAL, 69 70 }; 70 71 extern const char *extcon_cable_name[]; 71 72