Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198879
b: refs/heads/master
c: 388bbca
h: refs/heads/master
i:
  198877: 2c99f32
  198875: 59a0085
  198871: e482fe3
  198863: d779a24
  198847: af2d070
v: v3
  • Loading branch information
Ondrej Zary authored and Dmitry Torokhov committed May 27, 2010
1 parent 593ed6d commit 813f197
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 067fb2f648543894ce775082c5636f4c32b99e4f
refs/heads/master: 388bbcade41ee68d2d1ebb51a538380ea48ae599
7 changes: 6 additions & 1 deletion trunk/drivers/input/touchscreen/usbtouchscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,11 @@ static int nexio_read_data(struct usbtouch_usb *usbtouch, unsigned char *pkt)
if ((pkt[0] & 0xe0) != 0xe0)
return 0;

if (be16_to_cpu(packet->data_len) > 0xff)
packet->data_len = cpu_to_be16(be16_to_cpu(packet->data_len) - 0x100);
if (be16_to_cpu(packet->x_len) > 0xff)
packet->x_len = cpu_to_be16(be16_to_cpu(packet->x_len) - 0x80);

/* send ACK */
ret = usb_submit_urb(priv->ack, GFP_ATOMIC);

Expand Down Expand Up @@ -1112,7 +1117,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = {

#ifdef CONFIG_TOUCHSCREEN_USB_NEXIO
[DEVTYPE_NEXIO] = {
.rept_size = 128,
.rept_size = 1024,
.irq_always = true,
.read_data = nexio_read_data,
.init = nexio_init,
Expand Down

0 comments on commit 813f197

Please sign in to comment.