Reorder structure members for better packing
This commit is contained in:
parent
8a23c52650
commit
8c1c365ae7
@ -600,11 +600,13 @@ int usbhost_ctrlxfer(FAR struct usbhost_class_s *devclass,
|
||||
|
||||
sem_init(&xfer.done, 0, 0);
|
||||
|
||||
#ifdef CONFIG_USBHOST_HUB
|
||||
if (ROOTHUB(devclass))
|
||||
{
|
||||
ret = DRVR_RHCTRL(devclass->drvr, &xfer, ctrlreq);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
if ((ctrlreq->type & USB_REQ_DIR_IN) != 0)
|
||||
{
|
||||
|
@ -630,18 +630,13 @@ typedef FAR void *usbhost_ep_t;
|
||||
struct usbhost_class_s
|
||||
{
|
||||
#ifdef CONFIG_USBHOST_HUB
|
||||
/* Host driver */
|
||||
/* Common host driver */
|
||||
|
||||
struct usbhost_driver_s *drvr;
|
||||
|
||||
/* USB device address & speed */
|
||||
|
||||
uint8_t addr;
|
||||
uint8_t speed;
|
||||
FAR struct usbhost_driver_s *drvr;
|
||||
|
||||
/* Parent class */
|
||||
|
||||
struct usbhost_class_s *parent;
|
||||
FAR struct usbhost_class_s *parent;
|
||||
|
||||
/* Control endpoint, ep0 */
|
||||
|
||||
@ -651,13 +646,18 @@ struct usbhost_class_s
|
||||
|
||||
FAR struct usb_hubtt_s *tt;
|
||||
|
||||
/* Transaction translator port */
|
||||
|
||||
uint8_t ttport;
|
||||
|
||||
/* Class specific private data */
|
||||
|
||||
FAR void *priv;
|
||||
|
||||
/* USB device address & speed */
|
||||
|
||||
uint8_t addr;
|
||||
uint8_t speed;
|
||||
|
||||
/* Transaction translator port */
|
||||
|
||||
uint8_t ttport;
|
||||
#endif
|
||||
|
||||
/* Provides the configuration descriptor to the class. The configuration
|
||||
|
Loading…
Reference in New Issue
Block a user