Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
07fd2b87
Commit
07fd2b87
authored
Mar 02, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: remove intf->act_altsetting altogether from the USB core and usb.h
parent
667a8226
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
drivers/usb/core/message.c
drivers/usb/core/message.c
+0
-3
include/linux/usb.h
include/linux/usb.h
+0
-5
No files found.
drivers/usb/core/message.c
View file @
07fd2b87
...
...
@@ -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
;
...
...
include/linux/usb.h
View file @
07fd2b87
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment