From 99937a77daeebbc315f6654252af0d1321b97bcc Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 27 Jan 2017 14:38:55 -0600 Subject: [PATCH] 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 --- include/usb/usb_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/usb/usb_device.h b/include/usb/usb_device.h index c2f53292154..669bceca1df 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