git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Input: usbtouchscreen - support DMC devices with empty EEPROM
[safe/jmp/linux-2.6]
/
drivers
/
input
/
touchscreen
/
usbtouchscreen.c
diff --git
a/drivers/input/touchscreen/usbtouchscreen.c
b/drivers/input/touchscreen/usbtouchscreen.c
index
796b837
..
13fbda0
100644
(file)
--- a/
drivers/input/touchscreen/usbtouchscreen.c
+++ b/
drivers/input/touchscreen/usbtouchscreen.c
@@
-402,7
+402,8
@@
static int dmc_tsc10_init(struct usbtouch_usb *usbtouch)
TSC10_RATE_150, 0, buf, 2, USB_CTRL_SET_TIMEOUT);
if (ret < 0)
return ret;
- if (buf[0] != 0x06 || buf[1] != 0x00)
+ if ((buf[0] != 0x06 || buf[1] != 0x00) &&
+ (buf[0] != 0x15 || buf[1] != 0x01))
return -ENODEV;
/* start sending data */