From daniel.ritz-ml@swissonline.ch Thu Sep 7 14:53:56 2006 From: Daniel Ritz To: Greg KH , Dmitry Torokhov Subject: USB: usbtouchscreen: fix ITM data reading Date: Thu, 7 Sep 2006 21:25:51 +0200 Cc: "Kai Lindholm" Content-Disposition: inline Message-Id: <200609072125.53404.daniel.ritz-ml@swissonline.ch> From: Kai Lindhom [PATCH] usbtouchscreen: fix ITM data reading From: Kai Lindhom Signed-off-by: Daniel Ritz Acked-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/usb/input/usbtouchscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- gregkh-2.6.orig/drivers/usb/input/usbtouchscreen.c +++ gregkh-2.6/drivers/usb/input/usbtouchscreen.c @@ -286,7 +286,7 @@ static int mtouch_init(struct usbtouch_u 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;