summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Gala <kumar.gala@linaro.org>2017-01-27 14:38:55 -0600
committerAnas Nashif <nashif@linux.intel.com>2017-01-30 12:01:49 +0000
commit99937a77daeebbc315f6654252af0d1321b97bcc (patch)
tree740e24cfa5fd87fcc4af74431c3e1b3c24c2eb31
parentc9a4335ad31fe0ce653cf86e30dc508f01131623 (diff)
usb: Change transfer_len type to int32_t in usb_request_handler typedef
The functions that implement usb_request_handlers are already using an int32_t for transfer_len, so lets make the typedef match. This address a potential issue in the future when the typedef of int32_t changes (or when building with newlib). Change-Id: I6e478551c38f2040b0dcec47c2e4c565c27acdd0 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
-rw-r--r--include/usb/usb_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb/usb_device.h b/include/usb/usb_device.h
index c2f532921..669bceca1 100644
--- a/include/usb/usb_device.h
+++ b/include/usb/usb_device.h
@@ -74,7 +74,7 @@ typedef void (*usb_ep_callback)(uint8_t ep,
* interface number specified in the device descriptor table
*/
typedef int (*usb_request_handler) (struct usb_setup_packet *detup,
- int *transfer_len, uint8_t **payload_data);
+ int32_t *transfer_len, uint8_t **payload_data);
/*
* USB Endpoint Configuration