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
ca433637
Commit
ca433637
authored
Apr 08, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB
cleaned up the comments to put them in proper docbook format.
parent
99e471c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
drivers/usb/core/usb.c
drivers/usb/core/usb.c
+12
-9
No files found.
drivers/usb/core/usb.c
View file @
ca433637
...
...
@@ -196,14 +196,16 @@ void usb_deregister(struct usb_driver *driver)
usbfs_update_special
();
}
/*
* usb_ifnum_to_ifpos - convert the interface _number_ (as in interface.bInterfaceNumber)
* to the interface _position_ (as in dev->actconfig->interface + position)
/**
* usb_ifnum_to_ifpos - convert the interface number to the interface position
* @dev: the device to use
* @ifnum: the interface number (bInterfaceNumber); not interface position
*
* Note that the number is the same as the position for all interfaces _except_
* devices with interfaces not sequentially numbered (e.g., 0, 2, 3, etc).
* This is used to convert the interface _number_ (as in
* interface.bInterfaceNumber) to the interface _position_ (as in
* dev->actconfig->interface + position). Note that the number is the same as
* the position for all interfaces _except_ devices with interfaces not
* sequentially numbered (e.g., 0, 2, 3, etc).
*/
int
usb_ifnum_to_ifpos
(
struct
usb_device
*
dev
,
unsigned
ifnum
)
{
...
...
@@ -590,13 +592,14 @@ static int usb_find_interface_driver(struct usb_device *dev, unsigned ifnum)
return
-
1
;
}
/*
* usb_find_interface_driver_for_ifnum - convert ifnum to ifpos via
* usb_ifnum_to_ifpos and call usb_find_interface_driver().
/**
* usb_find_interface_driver_for_ifnum - finds a usb interface driver for the specified ifnum
* @dev: the device to use
* @ifnum: the interface number (bInterfaceNumber); not interface position!
*
* Note usb_find_interface_driver's ifnum parameter is actually interface position.
* This converts a ifnum to ifpos via a call to usb_ifnum_to_ifpos and then
* calls usb_find_interface_driver() with the found ifpos. Note
* usb_find_interface_driver's ifnum parameter is actually interface position.
*/
int
usb_find_interface_driver_for_ifnum
(
struct
usb_device
*
dev
,
unsigned
ifnum
)
{
...
...
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