Commit b7d3dcaa authored by Daniel Ritz's avatar Daniel Ritz Committed by Chris Wright

[PATCH] usbtouchscreen: use endpoint address from endpoint descriptor

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: default avatarDaniel Ritz <daniel.ritz@gmx.ch>
Cc: Ralf Lehmann <ralf@lehmann.cc>
Cc: J.P. Delport <jpdelport@csir.co.za>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent fa478816
...@@ -522,7 +522,7 @@ static int usbtouch_probe(struct usb_interface *intf, ...@@ -522,7 +522,7 @@ static int usbtouch_probe(struct usb_interface *intf,
type->max_press, 0, 0); type->max_press, 0, 0);
usb_fill_int_urb(usbtouch->irq, usbtouch->udev, 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->data, type->rept_size,
usbtouch_irq, usbtouch, endpoint->bInterval); usbtouch_irq, usbtouch, endpoint->bInterval);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment