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
Kirill Smelkov
linux
Commits
667a8226
Commit
667a8226
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 more USB drivers
parent
c868e47d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
drivers/input/joystick/iforce/iforce-usb.c
drivers/input/joystick/iforce/iforce-usb.c
+1
-1
drivers/net/irda/stir4200.c
drivers/net/irda/stir4200.c
+1
-2
drivers/usb/input/usbkbd.c
drivers/usb/input/usbkbd.c
+1
-1
drivers/usb/input/usbmouse.c
drivers/usb/input/usbmouse.c
+1
-1
No files found.
drivers/input/joystick/iforce/iforce-usb.c
View file @
667a8226
...
...
@@ -135,7 +135,7 @@ static int iforce_usb_probe(struct usb_interface *intf,
struct
usb_endpoint_descriptor
*
epirq
,
*
epout
;
struct
iforce
*
iforce
;
interface
=
&
intf
->
altsetting
[
intf
->
act_altsetting
]
;
interface
=
intf
->
cur_altsetting
;
epirq
=
&
interface
->
endpoint
[
0
].
desc
;
epout
=
&
interface
->
endpoint
[
1
].
desc
;
...
...
drivers/net/irda/stir4200.c
View file @
667a8226
...
...
@@ -1086,8 +1086,7 @@ static struct net_device_stats *stir_net_get_stats(struct net_device *dev)
static
int
stir_setup_usb
(
struct
stir_cb
*
stir
,
struct
usb_interface
*
intf
)
{
struct
usb_device
*
usbdev
=
interface_to_usbdev
(
intf
);
const
struct
usb_host_interface
*
interface
=
&
intf
->
altsetting
[
intf
->
act_altsetting
];
const
struct
usb_host_interface
*
interface
=
intf
->
cur_altsetting
;
const
struct
usb_endpoint_descriptor
*
ep_in
=
NULL
;
const
struct
usb_endpoint_descriptor
*
ep_out
=
NULL
;
int
i
;
...
...
drivers/usb/input/usbkbd.c
View file @
667a8226
...
...
@@ -240,7 +240,7 @@ static int usb_kbd_probe(struct usb_interface *iface,
char
path
[
64
];
char
*
buf
;
interface
=
&
iface
->
altsetting
[
iface
->
act_altsetting
]
;
interface
=
iface
->
cur_altsetting
;
if
(
interface
->
desc
.
bNumEndpoints
!=
1
)
return
-
ENODEV
;
...
...
drivers/usb/input/usbmouse.c
View file @
667a8226
...
...
@@ -131,7 +131,7 @@ static int usb_mouse_probe(struct usb_interface * intf, const struct usb_device_
char
path
[
64
];
char
*
buf
;
interface
=
&
intf
->
altsetting
[
intf
->
act_altsetting
]
;
interface
=
intf
->
cur_altsetting
;
if
(
interface
->
desc
.
bNumEndpoints
!=
1
)
return
-
ENODEV
;
...
...
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