Commit 3da64816 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB mdc800: forward port 2.4 fix for misuse of types.

Thanks to Dave Jones for pointing this out.
parent a672a656
...@@ -673,7 +673,7 @@ static int mdc800_device_release (struct inode* inode, struct file *file) ...@@ -673,7 +673,7 @@ static int mdc800_device_release (struct inode* inode, struct file *file)
*/ */
static ssize_t mdc800_device_read (struct file *file, char *buf, size_t len, loff_t *pos) static ssize_t mdc800_device_read (struct file *file, char *buf, size_t len, loff_t *pos)
{ {
int left=len, sts=len; /* single transfer size */ size_t left=len, sts=len; /* single transfer size */
char* ptr=buf; char* ptr=buf;
DECLARE_WAITQUEUE(wait, current); DECLARE_WAITQUEUE(wait, current);
...@@ -767,7 +767,7 @@ static ssize_t mdc800_device_read (struct file *file, char *buf, size_t len, lof ...@@ -767,7 +767,7 @@ static ssize_t mdc800_device_read (struct file *file, char *buf, size_t len, lof
*/ */
static ssize_t mdc800_device_write (struct file *file, const char *buf, size_t len, loff_t *pos) static ssize_t mdc800_device_write (struct file *file, const char *buf, size_t len, loff_t *pos)
{ {
int i=0; size_t i=0;
DECLARE_WAITQUEUE(wait, current); DECLARE_WAITQUEUE(wait, current);
down (&mdc800->io_lock); down (&mdc800->io_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment