mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
usbtouchscreen: fix ITM data reading
From: Kai Lindhom <[email protected]> Signed-off-by: Daniel Ritz <[email protected]> Acked-by: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
eaede2cb75
commit
09494d5d11
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ static int mtouch_init(struct usbtouch_usb *usbtouch)
|
|||
static int itm_read_data(unsigned char *pkt, int *x, int *y, int *touch, int *press)
|
||||
{
|
||||
*x = ((pkt[0] & 0x1F) << 7) | (pkt[3] & 0x7F);
|
||||
*x = ((pkt[1] & 0x1F) << 7) | (pkt[4] & 0x7F);
|
||||
*y = ((pkt[1] & 0x1F) << 7) | (pkt[4] & 0x7F);
|
||||
*press = ((pkt[2] & 0x1F) << 7) | (pkt[5] & 0x7F);
|
||||
*touch = ~pkt[7] & 0x20;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue