summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/pxa27x_udc.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-09-18 13:28:06 +0900
committerTom Rini <trini@ti.com>2014-09-24 18:30:29 -0400
commitc79cba37b3b42cf8fbd71babcd8998867f76fead (patch)
tree52e446aa0b8c3a623715da84b0fc9bdbd4826c0d /drivers/usb/gadget/pxa27x_udc.c
parent87f13aa00d0279fcc96530404c3a104eb4cb1672 (diff)
downloadu-boot-imx-c79cba37b3b42cf8fbd71babcd8998867f76fead.zip
u-boot-imx-c79cba37b3b42cf8fbd71babcd8998867f76fead.tar.gz
u-boot-imx-c79cba37b3b42cf8fbd71babcd8998867f76fead.tar.bz2
cosmetic: replace MIN, MAX with min, max
The macro MIN, MAX is defined as the aliase of min, max, respectively. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'drivers/usb/gadget/pxa27x_udc.c')
-rw-r--r--drivers/usb/gadget/pxa27x_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c
index 733558d..efd5c7f 100644
--- a/drivers/usb/gadget/pxa27x_udc.c
+++ b/drivers/usb/gadget/pxa27x_udc.c
@@ -65,7 +65,7 @@ static int udc_write_urb(struct usb_endpoint_instance *endpoint)
if (!urb || !urb->actual_length)
return -1;
- n = MIN(urb->actual_length - endpoint->sent, endpoint->tx_packetSize);
+ n = min(urb->actual_length - endpoint->sent, endpoint->tx_packetSize);
if (n <= 0)
return -1;