{stm32/stm32l4/stm32f7/stm32h7/efm32}/otgdev: remove invalid use of the priv field for EP
This field is for use in the class driver, not in the controller logic
This commit is contained in:
parent
0b4b35c80a
commit
a1aecd7369
@ -1526,8 +1526,8 @@ static inline void efm32_ep0out_receive(struct efm32_ep_s *privep,
|
||||
|
||||
/* Sanity Checking */
|
||||
|
||||
DEBUGASSERT(privep && privep->ep.priv);
|
||||
priv = (struct efm32_usbdev_s *)privep->ep.priv;
|
||||
DEBUGASSERT(privep && privep->dev);
|
||||
priv = (struct efm32_usbdev_s *)privep->dev;
|
||||
|
||||
uinfo("EP0: bcnt=%d\n", bcnt);
|
||||
usbtrace(TRACE_READ(EP0), bcnt);
|
||||
@ -5149,9 +5149,6 @@ static void efm32_swinitialize(struct efm32_usbdev_s *priv)
|
||||
priv->epavail[0] = EFM32_EP_AVAILABLE;
|
||||
priv->epavail[1] = EFM32_EP_AVAILABLE;
|
||||
|
||||
priv->epin[EP0].ep.priv = priv;
|
||||
priv->epout[EP0].ep.priv = priv;
|
||||
|
||||
/* Initialize the endpoint lists */
|
||||
|
||||
for (i = 0; i < EFM32_NENDPOINTS; i++)
|
||||
|
@ -1571,8 +1571,8 @@ static inline void stm32_ep0out_receive(struct stm32_ep_s *privep,
|
||||
|
||||
/* Sanity Checking */
|
||||
|
||||
DEBUGASSERT(privep && privep->ep.priv);
|
||||
priv = (struct stm32_usbdev_s *)privep->ep.priv;
|
||||
DEBUGASSERT(privep && privep->dev);
|
||||
priv = (struct stm32_usbdev_s *)privep->dev;
|
||||
|
||||
uinfo("EP0: bcnt=%d\n", bcnt);
|
||||
usbtrace(TRACE_READ(EP0), bcnt);
|
||||
@ -5234,9 +5234,6 @@ static void stm32_swinitialize(struct stm32_usbdev_s *priv)
|
||||
priv->epavail[0] = STM32_EP_AVAILABLE;
|
||||
priv->epavail[1] = STM32_EP_AVAILABLE;
|
||||
|
||||
priv->epin[EP0].ep.priv = priv;
|
||||
priv->epout[EP0].ep.priv = priv;
|
||||
|
||||
/* Initialize the endpoint lists */
|
||||
|
||||
for (i = 0; i < STM32_NENDPOINTS; i++)
|
||||
|
@ -1520,8 +1520,8 @@ static inline void stm32_ep0out_receive(struct stm32_ep_s *privep,
|
||||
|
||||
/* Sanity Checking */
|
||||
|
||||
DEBUGASSERT(privep && privep->ep.priv);
|
||||
priv = (struct stm32_usbdev_s *)privep->ep.priv;
|
||||
DEBUGASSERT(privep && privep->dev);
|
||||
priv = (struct stm32_usbdev_s *)privep->dev;
|
||||
|
||||
uinfo("EP0: bcnt=%d\n", bcnt);
|
||||
usbtrace(TRACE_READ(EP0), bcnt);
|
||||
@ -5138,9 +5138,6 @@ static void stm32_swinitialize(struct stm32_usbdev_s *priv)
|
||||
priv->epavail[0] = STM32_EP_AVAILABLE;
|
||||
priv->epavail[1] = STM32_EP_AVAILABLE;
|
||||
|
||||
priv->epin[EP0].ep.priv = priv;
|
||||
priv->epout[EP0].ep.priv = priv;
|
||||
|
||||
/* Initialize the endpoint lists */
|
||||
|
||||
for (i = 0; i < STM32_NENDPOINTS; i++)
|
||||
|
@ -1628,8 +1628,8 @@ static inline void stm32_ep0out_receive(struct stm32_ep_s *privep,
|
||||
|
||||
/* Sanity Checking */
|
||||
|
||||
DEBUGASSERT(privep && privep->ep.priv);
|
||||
priv = (struct stm32_usbdev_s *)privep->ep.priv;
|
||||
DEBUGASSERT(privep && privep->dev);
|
||||
priv = (struct stm32_usbdev_s *)privep->dev;
|
||||
|
||||
uinfo("EP0: bcnt=%d\n", bcnt);
|
||||
usbtrace(TRACE_READ(EP0), bcnt);
|
||||
@ -5250,9 +5250,6 @@ static void stm32_swinitialize(struct stm32_usbdev_s *priv)
|
||||
priv->epavail[0] = STM32_EP_AVAILABLE;
|
||||
priv->epavail[1] = STM32_EP_AVAILABLE;
|
||||
|
||||
priv->epin[EP0].ep.priv = priv;
|
||||
priv->epout[EP0].ep.priv = priv;
|
||||
|
||||
/* Initialize the endpoint lists */
|
||||
|
||||
for (i = 0; i < STM32_NENDPOINTS; i++)
|
||||
|
@ -1582,8 +1582,8 @@ static inline void stm32_ep0out_receive(struct stm32_ep_s *privep,
|
||||
|
||||
/* Sanity Checking */
|
||||
|
||||
DEBUGASSERT(privep && privep->ep.priv);
|
||||
priv = (struct stm32_usbdev_s *)privep->ep.priv;
|
||||
DEBUGASSERT(privep && privep->dev);
|
||||
priv = (struct stm32_usbdev_s *)privep->dev;
|
||||
|
||||
uinfo("EP0: bcnt=%d\n", bcnt);
|
||||
usbtrace(TRACE_READ(EP0), bcnt);
|
||||
@ -5163,9 +5163,6 @@ static void stm32_swinitialize(struct stm32_usbdev_s *priv)
|
||||
priv->epavail[0] = STM32_EP_AVAILABLE;
|
||||
priv->epavail[1] = STM32_EP_AVAILABLE;
|
||||
|
||||
priv->epin[EP0].ep.priv = priv;
|
||||
priv->epout[EP0].ep.priv = priv;
|
||||
|
||||
/* Initialize the endpoint lists */
|
||||
|
||||
for (i = 0; i < STM32_NENDPOINTS; i++)
|
||||
|
@ -1634,8 +1634,8 @@ static inline void stm32l4_ep0out_receive(struct stm32l4_ep_s *privep,
|
||||
|
||||
/* Sanity Checking */
|
||||
|
||||
DEBUGASSERT(privep && privep->ep.priv);
|
||||
priv = (struct stm32l4_usbdev_s *)privep->ep.priv;
|
||||
DEBUGASSERT(privep && privep->dev);
|
||||
priv = (struct stm32l4_usbdev_s *)privep->dev;
|
||||
|
||||
uinfo("EP0: bcnt=%d\n", bcnt);
|
||||
usbtrace(TRACE_READ(EP0), bcnt);
|
||||
@ -5287,9 +5287,6 @@ static void stm32l4_swinitialize(struct stm32l4_usbdev_s *priv)
|
||||
priv->epavail[0] = STM32L4_EP_AVAILABLE;
|
||||
priv->epavail[1] = STM32L4_EP_AVAILABLE;
|
||||
|
||||
priv->epin[EP0].ep.priv = priv;
|
||||
priv->epout[EP0].ep.priv = priv;
|
||||
|
||||
/* Initialize the IN endpoint list */
|
||||
|
||||
for (i = 0; i < STM32L4_NENDPOINTS; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user