Commit 5a14fa81 authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

[PATCH] USB: gcc-3.5: drivers/usb/misc/uss720.c

drivers/usb/misc/uss720.c: In function `parport_uss720_epp_read_data':
drivers/usb/misc/uss720.c:336: error: invalid lvalue in increment
drivers/usb/misc/uss720.c: In function `parport_uss720_epp_read_addr':
drivers/usb/misc/uss720.c:395: error: invalid lvalue in increment
drivers/usb/misc/uss720.c: In function `parport_uss720_epp_write_addr':
drivers/usb/misc/uss720.c:415: error: invalid lvalue in increment
drivers/usb/misc/uss720.c: In function `parport_uss720_ecp_write_addr':
drivers/usb/misc/uss720.c:472: error: invalid lvalue in increment
parent efb47d62
...@@ -333,7 +333,7 @@ static size_t parport_uss720_epp_read_data(struct parport *pp, void *buf, size_t ...@@ -333,7 +333,7 @@ static size_t parport_uss720_epp_read_data(struct parport *pp, void *buf, size_t
for (; got < length; got++) { for (; got < length; got++) {
if (get_1284_register(pp, 4, (char *)buf)) if (get_1284_register(pp, 4, (char *)buf))
break; break;
((char*)buf)++; buf++;
if (priv->reg[0] & 0x01) { if (priv->reg[0] & 0x01) {
clear_epp_timeout(pp); clear_epp_timeout(pp);
break; break;
...@@ -392,7 +392,7 @@ static size_t parport_uss720_epp_read_addr(struct parport *pp, void *buf, size_t ...@@ -392,7 +392,7 @@ static size_t parport_uss720_epp_read_addr(struct parport *pp, void *buf, size_t
for (; got < length; got++) { for (; got < length; got++) {
if (get_1284_register(pp, 3, (char *)buf)) if (get_1284_register(pp, 3, (char *)buf))
break; break;
((char*)buf)++; buf++;
if (priv->reg[0] & 0x01) { if (priv->reg[0] & 0x01) {
clear_epp_timeout(pp); clear_epp_timeout(pp);
break; break;
...@@ -412,7 +412,7 @@ static size_t parport_uss720_epp_write_addr(struct parport *pp, const void *buf, ...@@ -412,7 +412,7 @@ static size_t parport_uss720_epp_write_addr(struct parport *pp, const void *buf,
for (; written < length; written++) { for (; written < length; written++) {
if (set_1284_register(pp, 3, *(char *)buf)) if (set_1284_register(pp, 3, *(char *)buf))
break; break;
((char*)buf)++; buf++;
if (get_1284_register(pp, 1, NULL)) if (get_1284_register(pp, 1, NULL))
break; break;
if (priv->reg[0] & 0x01) { if (priv->reg[0] & 0x01) {
...@@ -469,7 +469,7 @@ static size_t parport_uss720_ecp_write_addr(struct parport *pp, const void *buff ...@@ -469,7 +469,7 @@ static size_t parport_uss720_ecp_write_addr(struct parport *pp, const void *buff
for (; written < len; written++) { for (; written < len; written++) {
if (set_1284_register(pp, 5, *(char *)buffer)) if (set_1284_register(pp, 5, *(char *)buffer))
break; break;
((char*)buffer)++; buffer++;
} }
change_mode(pp, ECR_PS2); change_mode(pp, ECR_PS2);
return written; return written;
......
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