]> git.sur5r.net Git - u-boot/blobdiff - drivers/serial/usbtty.c
i2c: s3c: Implant support for S3C2440
[u-boot] / drivers / serial / usbtty.c
index b030526b6a1f51f182b1fd6a7558c641b5f0b32a..75f0ec31bbfb9a6faedeaf9cf137ea1212ceefd5 100644 (file)
@@ -475,7 +475,7 @@ static void __usbtty_puts (const char *str, int len)
                if (space) {
                        write_buffer (&usbtty_output);
 
-                       n = MIN (space, MIN (len, maxlen));
+                       n = min(space, min(len, maxlen));
                        buf_push (&usbtty_output, str, n);
 
                        str += n;
@@ -882,7 +882,7 @@ static int write_buffer (circbuf_t * buf)
                        space_avail =
                                current_urb->buffer_length -
                                current_urb->actual_length;
-                       popnum = MIN (space_avail, buf->size);
+                       popnum = min(space_avail, (int)buf->size);
                        if (popnum == 0)
                                break;