From patchwork Thu Feb 11 03:32:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yhch X-Patchwork-Id: 78618 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1B3WDiB017076 for ; Thu, 11 Feb 2010 03:32:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753328Ab0BKDcN (ORCPT ); Wed, 10 Feb 2010 22:32:13 -0500 Received: from smtp.263xmail.com ([211.150.67.12]:16404 "EHLO smtp.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752327Ab0BKDcM (ORCPT ); Wed, 10 Feb 2010 22:32:12 -0500 Received: from smtp10.263xmail.com (smtp10 [127.0.0.1]) by smtp10.263xmail.com (Postfix) with ESMTP id 5BEDF950C for ; Thu, 11 Feb 2010 11:32:06 +0800 (CST) X-ABS-CHECKED: 1 X-KSVirus-check: 0 Received: from PC-200903280540 (smtp10 [127.0.0.1]) by smtp10.263xmail.com (Postfix) with ESMTP id D70D545D for ; Thu, 11 Feb 2010 11:32:05 +0800 (CST) X-SENDER-IP: 221.237.165.54 X-LOGIN-NAME: yhch@generaltouch.com X-ATTACHMENT-NUM: 0 X-SENDER: yhch@generaltouch.com Received: from PC-200903280540 (unknown [221.237.165.54]) by smtp10.263xmail.com (Postfix) whith ESMTP id 127097R7GNS; Thu, 11 Feb 2010 11:32:05 +0800 (CST) Date: Thu, 11 Feb 2010 11:32:06 +0800 From: "yhch" To: "linux-input" Subject: patch for usbtouchscreen.c Message-ID: <201002111132063289729@generaltouch.com> X-mailer: Foxmail 6, 15, 201, 22 [cn] Mime-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 11 Feb 2010 03:32:14 +0000 (UTC) --- usbtouchscreen.c 2008-11-21 07:02:37.000000000 +0800 +++ usbtouchscreengt.c 2010-02-03 15:30:57.000000000 +0800 @@ -526,8 +526,8 @@ #ifdef CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH static int general_touch_read_data(struct usbtouch_usb *dev, unsigned char *pkt) { - dev->x = ((pkt[2] & 0x0F) << 8) | pkt[1] ; - dev->y = ((pkt[4] & 0x0F) << 8) | pkt[3] ; + dev->x = ((pkt[2]) << 8) | pkt[1] ; + dev->y = ((pkt[4]) << 8) | pkt[3] ; dev->press = pkt[5] & 0xff; dev->touch = pkt[0] & 0x01; @@ -669,9 +669,9 @@ #ifdef CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH [DEVTYPE_GENERAL_TOUCH] = { .min_xc = 0x0, - .max_xc = 0x0500, + .max_xc = 0x0fff, .min_yc = 0x0, - .max_yc = 0x0500, + .max_yc = 0x0fff, .rept_size = 7, .read_data = general_touch_read_data, },