summaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/onetouch.h
diff options
context:
space:
mode:
authorMatthew Dharm <mdharm-usb@one-eyed-alien.net>2005-07-28 14:49:01 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-08 16:22:55 -0700
commit34008dbfe8c00eca67f97bad484eb5cb03bafe66 (patch)
tree72b7a8dc823dc1f1e77041025c7572499e65db64 /drivers/usb/storage/onetouch.h
parent26186ba77b493204ae0fadc3c88a67b14f22168f (diff)
[PATCH] USB Storage: add support for Maxtor One-Touch button
This patch is originally from Nick Sillik, and has been rediffed against the latest tree. This patch adds usability to the OneTouch Button on Maxtor External USB Hard Drives. Using an unusual device entry it declares an extra init function which claims the interrupt endpoint associated with this button. The button is connected to the input system. Signed-off-by: Nick Sillik <n.sillik@temple.edu> Signed-off-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage/onetouch.h')
-rw-r--r--drivers/usb/storage/onetouch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/storage/onetouch.h b/drivers/usb/storage/onetouch.h
new file mode 100644
index 00000000000..41c7aa8f044
--- /dev/null
+++ b/drivers/usb/storage/onetouch.h
@@ -0,0 +1,9 @@
+#ifndef _ONETOUCH_H_
+#define _ONETOUCH_H_
+
+#define ONETOUCH_PKT_LEN 0x02
+#define ONETOUCH_BUTTON KEY_PROG1
+
+int onetouch_connect_input(struct us_data *ss);
+
+#endif