summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/alps.h
diff options
context:
space:
mode:
authorSeth Forshee <seth.forshee@canonical.com>2011-11-07 19:53:24 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-11-07 22:22:10 -0800
commitfa629ef5222193214da9a2b3c94369f79353bec9 (patch)
tree07221f6fa39181d1bfb8bf51ff4cb86c8e36a6d3 /drivers/input/mouse/alps.h
parentd4b347b29b4d14647c7394f7167bf6785dc98e50 (diff)
downloadblackbird-op-linux-fa629ef5222193214da9a2b3c94369f79353bec9.tar.gz
blackbird-op-linux-fa629ef5222193214da9a2b3c94369f79353bec9.zip
Input: ALPS - add protocol version field in alps_model_info
In preparation for adding support for more ALPS protocol versions, add a field for the protocol version to the model info instead of using a field in the flags. OLDPROTO and !OLDPROTO are now called version 1 and version 2, repsectively. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Acked-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse/alps.h')
-rw-r--r--drivers/input/mouse/alps.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/mouse/alps.h b/drivers/input/mouse/alps.h
index 904ed8b3c8be..4ce9bba6a3cd 100644
--- a/drivers/input/mouse/alps.h
+++ b/drivers/input/mouse/alps.h
@@ -12,8 +12,12 @@
#ifndef _ALPS_H
#define _ALPS_H
+#define ALPS_PROTO_V1 0
+#define ALPS_PROTO_V2 1
+
struct alps_model_info {
unsigned char signature[3];
+ unsigned char proto_version;
unsigned char byte0, mask0;
unsigned char flags;
};
OpenPOWER on IntegriCloud