Correct inconsistencies

This commit is contained in:
TimJTi 2023-02-17 23:02:10 +00:00 committed by Xiang Xiao
parent 39d3236ee8
commit f629b6063c
2 changed files with 6 additions and 6 deletions

View File

@ -1721,7 +1721,7 @@ static int fusb302_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
}
break;
case USBCIOC_SET_MODE:
case USBCIOC_SET_POLL_MODE:
{
ret = fusb302_set_mode(priv, (uint8_t)arg);
}

View File

@ -50,11 +50,11 @@ extern "C"
/* IOCTL Commands ***********************************************************/
#define USBCIOC_READ_DEVID _USBCIOC(0x0001) /* Arg: uint8_t* pointer */
#define USBCIOC_SETUP _USBCIOC(0x0002) /* Arg: uint8_t* pointer */
#define USBCIOC_SET_MODE _USBCIOC(0x0003) /* Arg: uint8_t value */
#define USBCIOC_READ_STATUS _USBCIOC(0x0004) /* Arg: uint8_t* pointer*/
#define USBCIOC_RESET _USBCIOC(0x0005) /* Arg: None */
#define USBCIOC_READ_DEVID _USBCIOC(0x0001) /* Arg: uint8_t* pointer */
#define USBCIOC_SETUP _USBCIOC(0x0002) /* Arg: uint8_t* pointer */
#define USBCIOC_READ_STATUS _USBCIOC(0x0005) /* Arg: uint8_t* pointer*/
#define USBCIOC_RESET _USBCIOC(0x0007) /* Arg: None */
#define USBCIOC_SET_POLL_MODE _USBCIOC(0x0008) /* Arg: uint8_t value */
/****************************************************************************
* Public Types