forked from len0rd/rockbox
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
This commit is contained in:
parent
f3834a4626
commit
524035b772
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue