forked from len0rd/rockbox
usb PACK_DATA: use a static inline to enable type checking
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31467 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6a6269ffd8
commit
4c2126b5a8
5 changed files with 16 additions and 16 deletions
|
|
@ -430,15 +430,15 @@ int usb_storage_get_config_descriptor(unsigned char *dest,int max_packet_size)
|
|||
unsigned char *orig_dest = dest;
|
||||
|
||||
interface_descriptor.bInterfaceNumber = usb_interface;
|
||||
PACK_DATA(dest, interface_descriptor);
|
||||
PACK_DATA(&dest, interface_descriptor);
|
||||
|
||||
endpoint_descriptor.wMaxPacketSize = max_packet_size;
|
||||
|
||||
endpoint_descriptor.bEndpointAddress = ep_in;
|
||||
PACK_DATA(dest, endpoint_descriptor);
|
||||
PACK_DATA(&dest, endpoint_descriptor);
|
||||
|
||||
endpoint_descriptor.bEndpointAddress = ep_out;
|
||||
PACK_DATA(dest, endpoint_descriptor);
|
||||
PACK_DATA(&dest, endpoint_descriptor);
|
||||
|
||||
return (dest - orig_dest);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue