usb: dwc2: gadget: fix checkpatch errors
authorJingoo Han <jg1.han@samsung.com>
Tue, 3 Jun 2014 13:14:56 +0000 (22:14 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 22:56:13 +0000 (15:56 -0700)
Fix checkpatch errors as belows.

  ERROR: open brace '{' following function declarations go on the next line
  ERROR: space required before the open parenthesis '('

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c

index f3c56a2fed5bfab9f3e1acfe49e4d32fe5ad4291..df432726333ae3c01815aa5451124f04f5c0389f 100644 (file)
@@ -1022,7 +1022,8 @@ static void s3c_hsotg_disconnect(struct s3c_hsotg *hsotg);
  *
  * Set stall for ep0 as response for setup request.
  */
-static void s3c_hsotg_stall_ep0(struct s3c_hsotg *hsotg) {
+static void s3c_hsotg_stall_ep0(struct s3c_hsotg *hsotg)
+{
        struct s3c_hsotg_ep *ep0 = &hsotg->eps[0];
        u32 reg;
        u32 ctrl;
@@ -1994,7 +1995,7 @@ static void kill_all_requests(struct s3c_hsotg *hsotg,
                s3c_hsotg_complete_request(hsotg, ep, req,
                                           result);
        }
-       if(hsotg->dedicated_fifos)
+       if (hsotg->dedicated_fifos)
                if ((readl(hsotg->regs + DTXFSTS(ep->index)) & 0xffff) * 4 < 3072)
                        s3c_hsotg_txfifo_flush(hsotg, ep->index);
 }