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
cf1a1e3c
Commit
cf1a1e3c
authored
Oct 15, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: 64bit fixups for legousbtower driver
parent
a6de029b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/usb/misc/legousbtower.c
drivers/usb/misc/legousbtower.c
+5
-5
No files found.
drivers/usb/misc/legousbtower.c
View file @
cf1a1e3c
...
...
@@ -379,7 +379,7 @@ static ssize_t tower_read (struct file *file, char *buffer, size_t count, loff_t
int
retval
=
0
;
int
timeout
=
0
;
dbg
(
2
,
" %s : enter, count = %d"
,
__func__
,
count
);
dbg
(
2
,
" %s : enter, count = %
Z
d"
,
__func__
,
count
);
dev
=
(
struct
lego_usb_tower
*
)
file
->
private_data
;
...
...
@@ -479,7 +479,7 @@ static ssize_t tower_write (struct file *file, const char *buffer, size_t count,
int
retval
=
0
;
int
timeout
=
0
;
dbg
(
2
,
" %s : enter, count = %d"
,
__func__
,
count
);
dbg
(
2
,
" %s : enter, count = %
Z
d"
,
__func__
,
count
);
dev
=
(
struct
lego_usb_tower
*
)
file
->
private_data
;
...
...
@@ -528,14 +528,14 @@ static ssize_t tower_write (struct file *file, const char *buffer, size_t count,
goto
exit
;
}
dbg
(
4
,
" %s : in progress, count = %d"
,
__func__
,
count
);
dbg
(
4
,
" %s : in progress, count = %
Z
d"
,
__func__
,
count
);
}
else
{
dbg
(
4
,
" %s : sending, count = %d"
,
__func__
,
count
);
dbg
(
4
,
" %s : sending, count = %
Z
d"
,
__func__
,
count
);
/* write the data into interrupt_out_buffer from userspace */
buffer_size
=
dev
->
interrupt_out_endpoint
->
wMaxPacketSize
;
bytes_to_write
=
count
>
buffer_size
?
buffer_size
:
count
;
dbg
(
4
,
" %s : buffer_size = %
d, count = %d, bytes_to_write = %
d"
,
__func__
,
buffer_size
,
count
,
bytes_to_write
);
dbg
(
4
,
" %s : buffer_size = %
Zd, count = %Zd, bytes_to_write = %Z
d"
,
__func__
,
buffer_size
,
count
,
bytes_to_write
);
if
(
copy_from_user
(
dev
->
interrupt_out_buffer
,
buffer
,
bytes_to_write
)
!=
0
)
{
retval
=
-
EFAULT
;
...
...
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