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
2c8a8cf9
Commit
2c8a8cf9
authored
Aug 28, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: remove usage of DEVICE_ID_SIZE from usb core as it should not be used.
parent
d29f072f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/usb/core/file.c
drivers/usb/core/file.c
+4
-4
No files found.
drivers/usb/core/file.c
View file @
2c8a8cf9
...
...
@@ -129,7 +129,7 @@ int usb_register_dev(struct usb_interface *intf,
int
retval
=
-
EINVAL
;
int
minor_base
=
class_driver
->
minor_base
;
int
minor
=
0
;
char
name
[
DEVICE
_ID_SIZE
];
char
name
[
BUS
_ID_SIZE
];
struct
class_device
*
class_dev
;
char
*
temp
;
...
...
@@ -166,7 +166,7 @@ int usb_register_dev(struct usb_interface *intf,
intf
->
minor
=
minor
;
/* handle the devfs registration */
snprintf
(
name
,
DEVICE
_ID_SIZE
,
class_driver
->
name
,
minor
-
minor_base
);
snprintf
(
name
,
BUS
_ID_SIZE
,
class_driver
->
name
,
minor
-
minor_base
);
devfs_mk_cdev
(
MKDEV
(
USB_MAJOR
,
minor
),
class_driver
->
mode
,
name
);
/* create a usb class device for this usb interface */
...
...
@@ -211,7 +211,7 @@ void usb_deregister_dev(struct usb_interface *intf,
struct
usb_class_driver
*
class_driver
)
{
int
minor_base
=
class_driver
->
minor_base
;
char
name
[
DEVICE
_ID_SIZE
];
char
name
[
BUS
_ID_SIZE
];
#ifdef CONFIG_USB_DYNAMIC_MINORS
minor_base
=
0
;
...
...
@@ -226,7 +226,7 @@ void usb_deregister_dev(struct usb_interface *intf,
usb_minors
[
intf
->
minor
]
=
NULL
;
spin_unlock
(
&
minor_lock
);
snprintf
(
name
,
DEVICE
_ID_SIZE
,
class_driver
->
name
,
intf
->
minor
-
minor_base
);
snprintf
(
name
,
BUS
_ID_SIZE
,
class_driver
->
name
,
intf
->
minor
-
minor_base
);
devfs_remove
(
name
);
if
(
intf
->
class_dev
)
{
...
...
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