Commit 6f58f120 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] USB: Altsetting update for USB input drivers

This patch continues the update process for the cur_altsetting change.
The drivers in usb/input were all in good shape and needed only minimal
changes.
parent 18a860b2
...@@ -265,7 +265,7 @@ aiptek_probe(struct usb_interface *intf, ...@@ -265,7 +265,7 @@ aiptek_probe(struct usb_interface *intf,
const struct usb_device_id *id) const struct usb_device_id *id)
{ {
struct usb_device *dev = interface_to_usbdev (intf); struct usb_device *dev = interface_to_usbdev (intf);
struct usb_host_interface *interface = intf->altsetting + 0; struct usb_host_interface *interface = intf->cur_altsetting;
struct usb_endpoint_descriptor *endpoint; struct usb_endpoint_descriptor *endpoint;
struct aiptek *aiptek; struct aiptek *aiptek;
int err = -ENOMEM; int err = -ENOMEM;
......
...@@ -182,7 +182,7 @@ static int kbtab_probe(struct usb_interface *intf, const struct usb_device_id *i ...@@ -182,7 +182,7 @@ static int kbtab_probe(struct usb_interface *intf, const struct usb_device_id *i
kbtab->dev.dev = &intf->dev; kbtab->dev.dev = &intf->dev;
kbtab->usbdev = dev; kbtab->usbdev = dev;
endpoint = &intf->altsetting[0].endpoint[0].desc; endpoint = &intf->cur_altsetting->endpoint[0].desc;
usb_fill_int_urb(kbtab->irq, dev, usb_fill_int_urb(kbtab->irq, dev,
usb_rcvintpipe(dev, endpoint->bEndpointAddress), usb_rcvintpipe(dev, endpoint->bEndpointAddress),
......
...@@ -305,7 +305,7 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i ...@@ -305,7 +305,7 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i
int pipe, maxp; int pipe, maxp;
char path[64]; char path[64];
interface = intf->altsetting + 0; interface = intf->cur_altsetting;
endpoint = &interface->endpoint[0].desc; endpoint = &interface->endpoint[0].desc;
if (!(endpoint->bEndpointAddress & 0x80)) if (!(endpoint->bEndpointAddress & 0x80))
return -EIO; return -EIO;
......
...@@ -698,7 +698,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i ...@@ -698,7 +698,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
wacom->dev.dev = &intf->dev; wacom->dev.dev = &intf->dev;
wacom->usbdev = dev; wacom->usbdev = dev;
endpoint = &intf->altsetting[0].endpoint[0].desc; endpoint = &intf->cur_altsetting->endpoint[0].desc;
if (wacom->features->pktlen > 10) if (wacom->features->pktlen > 10)
BUG(); BUG();
......
...@@ -252,7 +252,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id ...@@ -252,7 +252,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
return -ENOMEM; return -ENOMEM;
} }
ep_irq_in = &intf->altsetting[0].endpoint[0].desc; ep_irq_in = &intf->cur_altsetting->endpoint[0].desc;
usb_fill_int_urb(xpad->irq_in, udev, usb_fill_int_urb(xpad->irq_in, udev,
usb_rcvintpipe(udev, ep_irq_in->bEndpointAddress), usb_rcvintpipe(udev, ep_irq_in->bEndpointAddress),
......
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