diff --git a/drivers/usbmisc/fusb302.c b/drivers/usbmisc/fusb302.c index 92bc8a24f6..bbbf5a58b2 100644 --- a/drivers/usbmisc/fusb302.c +++ b/drivers/usbmisc/fusb302.c @@ -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); } diff --git a/include/nuttx/usb/fusb302.h b/include/nuttx/usb/fusb302.h index d929cc8343..fee22e6408 100644 --- a/include/nuttx/usb/fusb302.h +++ b/include/nuttx/usb/fusb302.h @@ -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