Explorar o código

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>
Mark Brown %!s(int64=13) %!d(string=hai) anos
pai
achega
0e1507c845
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      drivers/extcon/extcon_class.c
  2. 1 0
      include/linux/extcon.h

+ 1 - 0
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,
 };

+ 1 - 0
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[];