projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SPDX: Convert all of our single license tags to Linux Kernel style
[platform/kernel/u-boot.git]
/
drivers
/
usb
/
gadget
/
designware_udc.c
diff --git
a/drivers/usb/gadget/designware_udc.c
b/drivers/usb/gadget/designware_udc.c
index
3559400
..
fa947da
100644
(file)
--- a/
drivers/usb/gadget/designware_udc.c
+++ b/
drivers/usb/gadget/designware_udc.c
@@
-1,11
+1,10
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Based on drivers/usb/gadget/omap1510_udc.c
* TI OMAP1510 USB bus interface driver
*
* (C) Copyright 2009
* Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
/*
* Based on drivers/usb/gadget/omap1510_udc.c
* TI OMAP1510 USB bus interface driver
*
* (C) Copyright 2009
* Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
@@
-269,8
+268,8
@@
static void dw_write_noniso_tx_fifo(struct usb_endpoint_instance
UDCDBGA("urb->buffer %p, buffer_length %d, actual_length %d",
urb->buffer, urb->buffer_length, urb->actual_length);
UDCDBGA("urb->buffer %p, buffer_length %d, actual_length %d",
urb->buffer, urb->buffer_length, urb->actual_length);
- last = min
(
urb->actual_length - endpoint->sent,
- endpoint->tx_packetSize);
+ last = min
_t(u32,
urb->actual_length - endpoint->sent,
+
endpoint->tx_packetSize);
if (last) {
u8 *cp = urb->buffer + endpoint->sent;
if (last) {
u8 *cp = urb->buffer + endpoint->sent;
@@
-601,7
+600,7
@@
void udc_setup_ep(struct usb_device_instance *device,
if ((ep != 0) && (udc_device->device_state < STATE_ADDRESSED))
return;
if ((ep != 0) && (udc_device->device_state < STATE_ADDRESSED))
return;
- tt =
getenv
("usbtty");
+ tt =
env_get
("usbtty");
if (!tt)
tt = "generic";
if (!tt)
tt = "generic";