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
e2acfa62
Commit
e2acfa62
authored
Feb 25, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: add the rest of the interface descriptor info to sysfs
parent
97e1fe60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
drivers/usb/core/driverfs.c
drivers/usb/core/driverfs.c
+6
-0
No files found.
drivers/usb/core/driverfs.c
View file @
e2acfa62
...
@@ -183,15 +183,21 @@ show_##field (struct device *dev, char *buf) \
...
@@ -183,15 +183,21 @@ show_##field (struct device *dev, char *buf) \
} \
} \
static DEVICE_ATTR(field, S_IRUGO, show_##field, NULL);
static DEVICE_ATTR(field, S_IRUGO, show_##field, NULL);
usb_intf_attr
(
bInterfaceNumber
,
"%02x
\n
"
)
usb_intf_attr
(
bAlternateSetting
,
"%2d
\n
"
)
usb_intf_attr
(
bAlternateSetting
,
"%2d
\n
"
)
usb_intf_attr
(
bNumEndpoints
,
"%02x
\n
"
)
usb_intf_attr
(
bInterfaceClass
,
"%02x
\n
"
)
usb_intf_attr
(
bInterfaceClass
,
"%02x
\n
"
)
usb_intf_attr
(
bInterfaceSubClass
,
"%02x
\n
"
)
usb_intf_attr
(
bInterfaceSubClass
,
"%02x
\n
"
)
usb_intf_attr
(
bInterfaceProtocol
,
"%02x
\n
"
)
usb_intf_attr
(
bInterfaceProtocol
,
"%02x
\n
"
)
usb_intf_attr
(
iInterface
,
"%02x
\n
"
)
void
usb_create_driverfs_intf_files
(
struct
usb_interface
*
intf
)
void
usb_create_driverfs_intf_files
(
struct
usb_interface
*
intf
)
{
{
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceNumber
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bAlternateSetting
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bAlternateSetting
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bNumEndpoints
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceClass
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceClass
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceSubClass
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceSubClass
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceProtocol
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceProtocol
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_iInterface
);
}
}
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