Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39010
b: refs/heads/master
c: 77dc2db
h: refs/heads/master
v: v3
  • Loading branch information
Mark Assad authored and Linus Torvalds committed Oct 5, 2006
1 parent e3f9455 commit 6e28903
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4b8447184ae85de4ce710e5f561fbaada21b8394
refs/heads/master: 77dc2db6d1d2703ee4e83d4b3dbecf4e06a910e6
10 changes: 7 additions & 3 deletions trunk/drivers/usb/input/itmtouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
*
* 1.2.1 09/03/2005 (HCE) hc@mivu.no
* Code cleanup and adjusting syntax to start matching kernel standards
*
*
* 1.2.2 10/05/2006 (MJA) massad@gmail.com
* Flag for detecting if the screen was being touch was incorrectly
* inverted, so no touch events were being detected.
*
*****************************************************************************/

#include <linux/kernel.h>
Expand All @@ -53,7 +57,7 @@
#define USB_PRODUCT_ID_TOUCHPANEL 0xf9e9

#define DRIVER_AUTHOR "Hans-Christian Egtvedt <hc@mivu.no>"
#define DRIVER_VERSION "v1.2.1"
#define DRIVER_VERSION "v1.2.2"
#define DRIVER_DESC "USB ITM Inc Touch Panel Driver"
#define DRIVER_LICENSE "GPL"

Expand Down Expand Up @@ -108,7 +112,7 @@ static void itmtouch_irq(struct urb *urb, struct pt_regs *regs)
input_regs(dev, regs);

/* if pressure has been released, then don't report X/Y */
if (data[7] & 0x20) {
if (!(data[7] & 0x20)) {
input_report_abs(dev, ABS_X, (data[0] & 0x1F) << 7 | (data[3] & 0x7F));
input_report_abs(dev, ABS_Y, (data[1] & 0x1F) << 7 | (data[4] & 0x7F));
}
Expand Down

0 comments on commit 6e28903

Please sign in to comment.