From f629b6063c5678318766a77283c0c537ebe33670 Mon Sep 17 00:00:00 2001 From: TimJTi <56726697+TimJTi@users.noreply.github.com> Date: Fri, 17 Feb 2023 23:02:10 +0000 Subject: [PATCH] Correct inconsistencies --- drivers/usbmisc/fusb302.c | 2 +- include/nuttx/usb/fusb302.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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