Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126843
b: refs/heads/master
c: 2ec6f24
h: refs/heads/master
i:
  126841: 0c737c7
  126839: cb035e4
v: v3
  • Loading branch information
Nuno Lucas authored and Dmitry Torokhov committed Nov 19, 2008
1 parent c36fe86 commit 29e6633
Show file tree
Hide file tree
Showing 2 changed files with 3 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: a6c2490f010d9235b1424110c6f414460e41dfe1
refs/heads/master: 2ec6f246c33a0b830a6ad3171161e9d880e2251e
5 changes: 2 additions & 3 deletions trunk/drivers/input/touchscreen/usbtouchscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static int dmc_tsc10_init(struct usbtouch_usb *usbtouch)
0, 0, buf, 2, USB_CTRL_SET_TIMEOUT);
if (ret < 0)
goto err_out;
if (buf[0] != 0x06 || buf[1] != 0x00) {
if (buf[0] != 0x06) {
ret = -ENODEV;
goto err_out;
}
Expand All @@ -437,8 +437,7 @@ static int dmc_tsc10_init(struct usbtouch_usb *usbtouch)
TSC10_RATE_150, 0, buf, 2, USB_CTRL_SET_TIMEOUT);
if (ret < 0)
goto err_out;
if ((buf[0] != 0x06 || buf[1] != 0x00) &&
(buf[0] != 0x15 || buf[1] != 0x01)) {
if ((buf[0] != 0x06) && (buf[0] != 0x15 || buf[1] != 0x01)) {
ret = -ENODEV;
goto err_out;
}
Expand Down

0 comments on commit 29e6633

Please sign in to comment.