]> git.baikalelectronics.ru Git - kernel.git/commit
Input: alps - only set fields that are actually present
authorHans de Goede <hdegoede@redhat.com>
Wed, 20 May 2015 21:39:21 +0000 (14:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 20 May 2015 21:45:43 +0000 (14:45 -0700)
commita82847bd8f3b00a80d269d586c2ea6c4d36aa722
tree546f9e6f11ef76760ae391a82e7029fcc41bf3f7
parent72abae7c974acdc98f607e221ce8a079f2dd7fcf
Input: alps - only set fields that are actually present

Pinnacle / Rushmore packets contain either position info, or bitmap info,
never both. So far we've in essence been storing garbage in the position /
bitmap fields of the fields struct when decoding a bitmap / pos packet.

We've been relying on the following sequence to get away with this:

1) Decode bitmap packet
2) Process bitmap packet
3) Decode position packet
4) Use position / button info

This patch allows us to change this sequence, which will allow using the
position info when processing the bitmap for more accurate results.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c