]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: MUSB: checkpatch.pl fixes to musb_gadget.c
authorFelipe Balbi <felipe.balbi@nokia.com>
Fri, 11 Apr 2008 08:28:23 +0000 (11:28 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 11 Apr 2008 18:54:00 +0000 (11:54 -0700)
Misc cleanup patch.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_gadget.c

index 0fb963578017993375be8a6dbfb94f45cb1126a6..303b6f6cfbd98f04afcc21aab39c5020fccaf46f 100644 (file)
@@ -321,8 +321,7 @@ static void txstate(struct musb *musb, struct musb_request *req)
                                        csr |= (MUSB_TXCSR_DMAENAB |
                                                        MUSB_TXCSR_MODE);
                                        /* against programming guide */
-                               }
-                               else
+                               } else
                                        csr |= (MUSB_TXCSR_AUTOSET
                                                        | MUSB_TXCSR_DMAENAB
                                                        | MUSB_TXCSR_DMAMODE
@@ -812,7 +811,7 @@ void musb_g_rx(struct musb *musb, u8 epnum)
                }
 
                /* incomplete, and not short? wait for next IN packet */
-                if ((request->actual < request->length)
+               if ((request->actual < request->length)
                                && (musb_ep->dma->actual_len
                                        == musb_ep->packet_sz))
                        goto done;
@@ -1482,7 +1481,7 @@ static void musb_pullup(struct musb *musb, int is_on)
 #if 0
 static int musb_gadget_vbus_session(struct usb_gadget *gadget, int is_active)
 {
-       DBG(2, "<= %s =>\n", __FUNCTION__);
+       DBG(2, "<= %s =>\n", __func__);
 
        /*
         * FIXME iff driver's softconnect flag is set (as it is during probe,
@@ -1543,7 +1542,7 @@ static struct musb *the_gadget;
 static void musb_gadget_release(struct device *dev)
 {
        /* kref_put(WHAT) */
-       dev_dbg(dev, "%s\n", __FUNCTION__);
+       dev_dbg(dev, "%s\n", __func__);
 }
 
 
@@ -1689,7 +1688,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
        /* driver must be initialized to support peripheral mode */
        if (!musb || !(musb->board_mode == MUSB_OTG
                                || musb->board_mode != MUSB_OTG)) {
-               DBG(1,"%s, no dev??\n", __FUNCTION__);
+               DBG(1, "%s, no dev??\n", __func__);
                return -ENODEV;
        }
 
@@ -1803,7 +1802,7 @@ static void stop_activity(struct musb *musb, struct usb_gadget_driver *driver)
                }
 
                spin_unlock(&musb->lock);
-               driver->disconnect (&musb->g);
+               driver->disconnect(&musb->g);
                spin_lock(&musb->lock);
        }
 }