Commit 07fd2b87 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: remove intf->act_altsetting altogether from the USB core and usb.h

parent 667a8226
......@@ -969,7 +969,6 @@ int usb_set_interface(struct usb_device *dev, int interface, int alternate)
usb_disable_interface(dev, iface);
iface->cur_altsetting = alt;
iface->act_altsetting = alt - iface->altsetting;
/* If the interface only has one altsetting and the device didn't
* accept the request, we attempt to carry out the equivalent action
......@@ -1068,7 +1067,6 @@ int usb_reset_configuration(struct usb_device *dev)
alt = &intf->altsetting[0];
intf->cur_altsetting = alt;
intf->act_altsetting = alt - intf->altsetting;
usb_enable_interface(dev, intf);
}
return 0;
......@@ -1170,7 +1168,6 @@ int usb_set_configuration(struct usb_device *dev, int configuration)
alt = &intf->altsetting[0];
intf->cur_altsetting = alt;
intf->act_altsetting = alt - intf->altsetting;
usb_enable_interface(dev, intf);
intf->dev.parent = &dev->dev;
intf->dev.driver = NULL;
......
......@@ -77,10 +77,6 @@ struct usb_host_interface {
* endpoint configurations. They will be in no particular order.
* @num_altsetting: number of altsettings defined.
* @cur_altsetting: the current altsetting.
* @act_altsetting: index of current altsetting. This number is always
* less than num_altsetting. After the device is configured, each
* interface uses its default setting of zero.
* NOTE: act_altsetting is deprecated. Use cur_altsetting instead.
* @driver: the USB driver that is bound to this interface.
* @minor: the minor number assigned to this interface, if this
* interface is bound to a driver that uses the USB major number.
......@@ -125,7 +121,6 @@ struct usb_interface {
struct usb_host_interface *cur_altsetting; /* the currently
* active alternate setting */
unsigned act_altsetting; /* index of active alternate setting: DEPRECATED */
unsigned num_altsetting; /* number of alternate settings */
struct usb_driver *driver; /* driver */
......
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