From: Daniel Ritz Date: Fri, 27 Oct 2006 20:46:03 +0000 (+0200) Subject: usbtouchscreen: use endpoint address from endpoint descriptor X-Git-Tag: v3.12-rc1~31920^2~20^2~205^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8fa59a8f6f7c9a1bc294154fd6805c6b247683d;p=kernel%2Fkernel-generic.git 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: Daniel Ritz Cc: Ralf Lehmann Cc: J.P. Delport Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/input/usbtouchscreen.c b/drivers/usb/input/usbtouchscreen.c index 2902742..933cedd 100644 --- a/drivers/usb/input/usbtouchscreen.c +++ b/drivers/usb/input/usbtouchscreen.c @@ -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);