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
c868e47d
Commit
c868e47d
authored
Mar 02, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: remove act_altsetting usages in the remaining drivers/usb/ drivers
parent
b2144480
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
drivers/usb/input/ati_remote.c
drivers/usb/input/ati_remote.c
+1
-1
drivers/usb/input/hid-core.c
drivers/usb/input/hid-core.c
+1
-1
drivers/usb/input/mtouchusb.c
drivers/usb/input/mtouchusb.c
+1
-1
drivers/usb/net/usbnet.c
drivers/usb/net/usbnet.c
+1
-1
No files found.
drivers/usb/input/ati_remote.c
View file @
c868e47d
...
...
@@ -700,7 +700,7 @@ static int ati_remote_probe(struct usb_interface *interface, const struct usb_de
return
-
ENOMEM
;
memset
(
ati_remote
,
0x00
,
sizeof
(
struct
ati_remote
));
iface_host
=
&
interface
->
altsetting
[
interface
->
act_altsetting
]
;
iface_host
=
interface
->
cur_altsetting
;
if
(
iface_host
->
desc
.
bNumEndpoints
!=
2
)
{
err
(
"%s: Unexpected desc.bNumEndpoints
\n
"
,
__FUNCTION__
);
retval
=
-
ENODEV
;
...
...
drivers/usb/input/hid-core.c
View file @
c868e47d
...
...
@@ -1445,7 +1445,7 @@ static void hid_free_buffers(struct usb_device *dev, struct hid_device *hid)
static
struct
hid_device
*
usb_hid_configure
(
struct
usb_interface
*
intf
)
{
struct
usb_host_interface
*
interface
=
intf
->
altsetting
+
intf
->
act
_altsetting
;
struct
usb_host_interface
*
interface
=
intf
->
cur
_altsetting
;
struct
usb_device
*
dev
=
interface_to_usbdev
(
intf
);
struct
hid_descriptor
*
hdesc
;
struct
hid_device
*
hid
;
...
...
drivers/usb/input/mtouchusb.c
View file @
c868e47d
...
...
@@ -217,7 +217,7 @@ static int mtouchusb_probe(struct usb_interface *intf, const struct usb_device_i
}
dbg
(
"%s - setting interface"
,
__FUNCTION__
);
interface
=
&
intf
->
altsetting
[
intf
->
act_altsetting
]
;
interface
=
intf
->
cur_altsetting
;
dbg
(
"%s - setting endpoint"
,
__FUNCTION__
);
endpoint
=
&
interface
->
endpoint
[
0
].
desc
;
...
...
drivers/usb/net/usbnet.c
View file @
c868e47d
...
...
@@ -3009,7 +3009,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
return
-
ENODEV
;
}
xdev
=
interface_to_usbdev
(
udev
);
interface
=
&
udev
->
altsetting
[
udev
->
act_altsetting
]
;
interface
=
udev
->
cur_altsetting
;
usb_get_dev
(
xdev
);
...
...
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