usbtouchscreen: use endpoint address from endpoint descriptor
authorDaniel Ritz <daniel.ritz-ml@swissonline.ch>
Fri, 27 Oct 2006 20:46:03 +0000 (22:46 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Nov 2006 19:57:18 +0000 (11:57 -0800)
use the endpoint address from the endpoint descriptor instead of the hardcoding
it to 0x81. at least some ITM based screen use a different address and don't work
without this.

Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Cc: Ralf Lehmann <ralf@lehmann.cc>
Cc: J.P. Delport <jpdelport@csir.co.za>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/input/usbtouchscreen.c

index 2902742895ad875f71ea55c4aaea5a30af508a01..933ceddf3deec460ac6d66d8addc4e93f29727f1 100644 (file)
@@ -640,7 +640,7 @@ static int usbtouch_probe(struct usb_interface *intf,
                                     type->max_press, 0, 0);
 
        usb_fill_int_urb(usbtouch->irq, usbtouch->udev,
-                        usb_rcvintpipe(usbtouch->udev, 0x81),
+                        usb_rcvintpipe(usbtouch->udev, endpoint->bEndpointAddress),
                         usbtouch->data, type->rept_size,
                         usbtouch_irq, usbtouch, endpoint->bInterval);