diff options
author | Michael Sparmann <theseven@rockbox.org> | 2010-08-12 08:43:18 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2010-08-12 08:43:18 +0000 |
commit | 524035b77266e0dbacd4065c17e577edf2aa225f (patch) | |
tree | ad1f9fe293393817c9c0c5a45dfe22d41f0c1cf4 | |
parent | f3834a46262a548051d882db813f4d408939989b (diff) | |
download | rockbox-524035b77266e0dbacd4065c17e577edf2aa225f.tar.gz 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
-rw-r--r-- | firmware/export/usb_drv.h | 4 | ||||
-rw-r--r-- | firmware/target/arm/usb-s3c6400x.c | 4 |
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); | |||
33 | void usb_drv_int(void); /* Call from target INT handler */ | 33 | void usb_drv_int(void); /* Call from target INT handler */ |
34 | void usb_drv_stall(int endpoint, bool stall,bool in); | 34 | void usb_drv_stall(int endpoint, bool stall,bool in); |
35 | bool usb_drv_stalled(int endpoint,bool in); | 35 | bool usb_drv_stalled(int endpoint,bool in); |
36 | int usb_drv_send(int endpoint, const void* ptr, int length); | 36 | int usb_drv_send(int endpoint, void* ptr, int length); |
37 | int usb_drv_send_nonblocking(int endpoint, const void* ptr, int length); | 37 | int usb_drv_send_nonblocking(int endpoint, void* ptr, int length); |
38 | int usb_drv_recv(int endpoint, void* ptr, int length); | 38 | int usb_drv_recv(int endpoint, void* ptr, int length); |
39 | void usb_drv_ack(struct usb_ctrlrequest* req); | 39 | void usb_drv_ack(struct usb_ctrlrequest* req); |
40 | void usb_drv_set_address(int address); | 40 | 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) | |||
318 | DOEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */ | 318 | DOEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */ |
319 | } | 319 | } |
320 | 320 | ||
321 | int usb_drv_send(int endpoint, const void *ptr, int length) | 321 | int usb_drv_send(int endpoint, void *ptr, int length) |
322 | { | 322 | { |
323 | endpoint &= 0x7f; | 323 | endpoint &= 0x7f; |
324 | endpoints[endpoint].done = false; | 324 | endpoints[endpoint].done = false; |
@@ -328,7 +328,7 @@ int usb_drv_send(int endpoint, const void *ptr, int length) | |||
328 | return endpoints[endpoint].rc; | 328 | return endpoints[endpoint].rc; |
329 | } | 329 | } |
330 | 330 | ||
331 | int usb_drv_send_nonblocking(int endpoint, const void *ptr, int length) | 331 | int usb_drv_send_nonblocking(int endpoint, void *ptr, int length) |
332 | { | 332 | { |
333 | ep_send(endpoint & 0x7f, ptr, length); | 333 | ep_send(endpoint & 0x7f, ptr, length); |
334 | return 0; | 334 | return 0; |