diff options
author | Yunkang Tang <yunkang.tang@cn.alps.com> | 2014-07-25 22:29:24 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-26 14:03:12 -0700 |
commit | f105e34a4e3ff073b0d96d5f91eb3c6e8dffaa4c (patch) | |
tree | 0177d8c1182eccc2e4efb3320ede4777f6ee1f40 /drivers/input/mouse | |
parent | 91cf07cdaedbc29d03f572a1b0e5cf41ee6febab (diff) | |
download | op-kernel-dev-f105e34a4e3ff073b0d96d5f91eb3c6e8dffaa4c.zip op-kernel-dev-f105e34a4e3ff073b0d96d5f91eb3c6e8dffaa4c.tar.gz |
Input: alps - fix rushmore packet decoding
Signed-off-by: Yunkang Tang <yunkang.tang@cn.alps.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse')
-rw-r--r-- | drivers/input/mouse/alps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index fb15c64..e15daea 100644 --- a/drivers/input/mouse/alps.c +++ b/drivers/input/mouse/alps.c @@ -559,6 +559,9 @@ static void alps_decode_rushmore(struct alps_fields *f, unsigned char *p, { alps_decode_pinnacle(f, p, psmouse); + /* Rushmore's packet decode has a bit difference with Pinnacle's */ + f->is_mp = !!(p[5] & 0x40); + f->fingers = max((p[5] & 0x3), ((p[5] >> 2) & 0x3)) + 1; f->x_map |= (p[5] & 0x10) << 11; f->y_map |= (p[5] & 0x20) << 6; } |