]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Search and replace MGC_END0_FIFOSIZE with MUSB_EP0_FIFOSIZE, remove MGC_MA...
authorTony Lindgren <tony@atomide.com>
Wed, 15 Aug 2007 13:44:27 +0000 (06:44 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 15 Aug 2007 13:44:27 +0000 (06:44 -0700)
Search and replace MGC_END0_FIFOSIZE with MUSB_EP0_FIFOSIZE, remove MGC_MAX_USB_ENDS

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/g_ep0.c
drivers/usb/musb/musbdefs.h
drivers/usb/musb/musbhdrc.h
drivers/usb/musb/plat_uds.c

index 1fa0cadfd8e69fbcf89492b0f533e7aaa95d2def..9585d0062269e347e2af6f941a45a41861f6eba1 100644 (file)
@@ -497,7 +497,7 @@ static void ep0_txstate(struct musb *musb)
 
        /* load the data */
        pFifoSource = (u8 *) request->buf + request->actual;
-       fifo_count = min((unsigned) MGC_END0_FIFOSIZE,
+       fifo_count = min((unsigned) MUSB_EP0_FIFOSIZE,
                request->length - request->actual);
        musb_write_fifo(&musb->endpoints[0], fifo_count, pFifoSource);
        request->actual += fifo_count;
index 25dce14b6a50078c5c9d1a286b39ac9fbb199b1a..5ce0505e3b0f66cebf2bbb0045fcd83994c966fa 100644 (file)
@@ -175,7 +175,7 @@ static inline void musb_host_rx(struct musb *m, u8 e) {}
 #endif
 
 #ifndef MUSB_MAX_END0_PACKET
-#define MUSB_MAX_END0_PACKET ((u16)MGC_END0_FIFOSIZE)
+#define MUSB_MAX_END0_PACKET ((u16)MUSB_EP0_FIFOSIZE)
 #endif
 
 /* host side ep0 states */
index d26910fcafa3e2a9d756e07cae68e93398e8d94e..225fac9f6d23e75b6500f4cc6c7d0bd60399afe6 100644 (file)
@@ -38,9 +38,7 @@
  * HDRC-specific definitions
  */
 
-#define MGC_MAX_USB_ENDS       16
-
-#define MGC_END0_FIFOSIZE      64      /* this is non-configurable */
+#define MUSB_EP0_FIFOSIZE      64      /* this is non-configurable */
 
 /*
  *     MUSBMHDRC Register map
index 7b516ad7f00bc7b5e36bf51a54858e76809e7d1c..71e89d8fc3215d924230f6d6d13ab4fb66c2b4a1 100644 (file)
@@ -1335,8 +1335,8 @@ static int __init musb_core_init(u16 wType, struct musb *musb)
                        musb_driver_name, type, aRevision, aDate);
 
        /* configure ep0 */
-       musb->endpoints[0].max_packet_sz_tx = MGC_END0_FIFOSIZE;
-       musb->endpoints[0].max_packet_sz_rx = MGC_END0_FIFOSIZE;
+       musb->endpoints[0].max_packet_sz_tx = MUSB_EP0_FIFOSIZE;
+       musb->endpoints[0].max_packet_sz_rx = MUSB_EP0_FIFOSIZE;
 
        /* discover endpoint configuration */
        musb->nr_endpoints = 1;