summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@srcf.ucam.org>2008-07-19 00:43:54 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-07-19 00:52:43 -0400
commit92c49890922d54cba4b1eadeb0b185773c2c9570 (patch)
treec2b7282369361dd9e4ce22122771e7f31859d84f
parent5ec461d083066441c1a280aa9e13d3bb5c3e008a (diff)
downloadtalos-obmc-linux-92c49890922d54cba4b1eadeb0b185773c2c9570.tar.gz
talos-obmc-linux-92c49890922d54cba4b1eadeb0b185773c2c9570.zip
Input: add switch for dock events
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 <mjg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r--include/linux/input.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 1be28cbbc57b..feaea76f0ef3 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -643,6 +643,7 @@ struct input_absinfo {
set = radio enabled */
#define SW_RADIO SW_RFKILL_ALL /* deprecated */
#define SW_MICROPHONE_INSERT 0x04 /* set = inserted */
+#define SW_DOCK 0x05 /* set = plugged into dock */
#define SW_MAX 0x0f
#define SW_CNT (SW_MAX+1)
OpenPOWER on IntegriCloud