From: Matthew Garrett Add a SW_DOCK switch to input.h. ACPI docks currently send their docking status as a uevent, but not all docks are ACPI or correspond to a device. In that case, it makes more sense to simply generate an input event on docking or undocking. Signed-off-by: Matthew Garrett Cc: Dmitry Torokhov Cc: Kristen Carlson Accardi Cc: Len Brown Signed-off-by: Andrew Morton --- include/linux/input.h | 1 + 1 file changed, 1 insertion(+) diff -puN include/linux/input.h~input-add-switch-for-dock-events include/linux/input.h --- a/include/linux/input.h~input-add-switch-for-dock-events +++ a/include/linux/input.h @@ -642,6 +642,7 @@ struct input_absinfo { #define SW_RFKILL_ALL 0x03 /* rfkill master switch, type "any" set = radio enabled */ #define SW_RADIO SW_RFKILL_ALL /* deprecated */ +#define SW_DOCK 0x04 /* set = plugged into dock */ #define SW_MAX 0x0f #define SW_CNT (SW_MAX+1) _