Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180719
b: refs/heads/master
c: eb083ba
h: refs/heads/master
i:
  180717: 2a8e147
  180715: 57f43d6
  180711: 6cce01b
  180703: f50bf19
v: v3
  • Loading branch information
Roy Yin authored and Dmitry Torokhov committed Feb 22, 2010
1 parent e0c6309 commit 3919540
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: d9c4f846997c6d37e4f56907d93f1be022c17c6b
refs/heads/master: eb083ba260f21ad79e83e1ad05a0d27e93b58c83
8 changes: 4 additions & 4 deletions trunk/drivers/input/touchscreen/usbtouchscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,8 @@ static int idealtek_read_data(struct usbtouch_usb *dev, unsigned char *pkt)
#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;

Expand Down Expand Up @@ -809,9 +809,9 @@ static struct usbtouch_device_info usbtouch_dev_info[] = {
#ifdef CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH
[DEVTYPE_GENERAL_TOUCH] = {
.min_xc = 0x0,
.max_xc = 0x0500,
.max_xc = 0x7fff,
.min_yc = 0x0,
.max_yc = 0x0500,
.max_yc = 0x7fff,
.rept_size = 7,
.read_data = general_touch_read_data,
},
Expand Down

0 comments on commit 3919540

Please sign in to comment.