cdcacm: align cdcacm_epconfigure function parameters
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
parent
4c35bde3ba
commit
a2e7265adb
|
@ -976,7 +976,7 @@ static int cdcacm_setconfig(FAR struct cdcacm_dev_s *priv, uint8_t config)
|
|||
/* Configure the IN interrupt endpoint */
|
||||
|
||||
ret = cdcacm_epconfigure(priv->epintin, CDCACM_EPINTIN, false,
|
||||
&priv->devinfo, priv->usbdev->speed);
|
||||
&priv->devinfo, priv->usbdev->speed);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -989,7 +989,7 @@ static int cdcacm_setconfig(FAR struct cdcacm_dev_s *priv, uint8_t config)
|
|||
/* Configure the IN bulk endpoint */
|
||||
|
||||
ret = cdcacm_epconfigure(priv->epbulkin, CDCACM_EPBULKIN, false,
|
||||
&priv->devinfo, priv->usbdev->speed);
|
||||
&priv->devinfo, priv->usbdev->speed);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -1002,7 +1002,7 @@ static int cdcacm_setconfig(FAR struct cdcacm_dev_s *priv, uint8_t config)
|
|||
/* Configure the OUT bulk endpoint */
|
||||
|
||||
ret = cdcacm_epconfigure(priv->epbulkout, CDCACM_EPBULKOUT, true,
|
||||
&priv->devinfo, priv->usbdev->speed);
|
||||
&priv->devinfo, priv->usbdev->speed);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue