summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-08-12 08:43:18 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-08-12 08:43:18 +0000
commit524035b77266e0dbacd4065c17e577edf2aa225f (patch)
treead1f9fe293393817c9c0c5a45dfe22d41f0c1cf4 /firmware
parentf3834a46262a548051d882db813f4d408939989b (diff)
downloadrockbox-524035b77266e0dbacd4065c17e577edf2aa225f.tar.gz
rockbox-524035b77266e0dbacd4065c17e577edf2aa225f.tar.bz2
rockbox-524035b77266e0dbacd4065c17e577edf2aa225f.zip
Fix red: Revert the const correctness part, which opened a can of worms.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27780 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/usb_drv.h4
-rw-r--r--firmware/target/arm/usb-s3c6400x.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/usb_drv.h b/firmware/export/usb_drv.h
index c29d2892d6..fad9c79c10 100644
--- a/firmware/export/usb_drv.h
+++ b/firmware/export/usb_drv.h
@@ -33,8 +33,8 @@ void usb_drv_attach(void);
void usb_drv_int(void); /* Call from target INT handler */
void usb_drv_stall(int endpoint, bool stall,bool in);
bool usb_drv_stalled(int endpoint,bool in);
-int usb_drv_send(int endpoint, const void* ptr, int length);
-int usb_drv_send_nonblocking(int endpoint, const void* ptr, int length);
+int usb_drv_send(int endpoint, void* ptr, int length);
+int usb_drv_send_nonblocking(int endpoint, void* ptr, int length);
int usb_drv_recv(int endpoint, void* ptr, int length);
void usb_drv_ack(struct usb_ctrlrequest* req);
void usb_drv_set_address(int address);
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c
index 8755eabdf9..dbba9f39aa 100644
--- a/firmware/target/arm/usb-s3c6400x.c
+++ b/firmware/target/arm/usb-s3c6400x.c
@@ -318,7 +318,7 @@ static void ep_recv(int ep, void *ptr, int length)
DOEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */
}
-int usb_drv_send(int endpoint, const void *ptr, int length)
+int usb_drv_send(int endpoint, void *ptr, int length)
{
endpoint &= 0x7f;
endpoints[endpoint].done = false;
@@ -328,7 +328,7 @@ int usb_drv_send(int endpoint, const void *ptr, int length)
return endpoints[endpoint].rc;
}
-int usb_drv_send_nonblocking(int endpoint, const void *ptr, int length)
+int usb_drv_send_nonblocking(int endpoint, void *ptr, int length)
{
ep_send(endpoint & 0x7f, ptr, length);
return 0;