Commit c896c890 authored by Payal Kshirsagar's avatar Payal Kshirsagar Committed by Greg Kroah-Hartman

staging: emxx_udc: lines should not end with parenthesis

Adjust code to meet the style of “lines should not end with
parenthesis”.
Signed-off-by: default avatarPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 52012642
...@@ -459,22 +459,22 @@ static void _nbu2ss_dma_map_single(struct nbu2ss_udc *udc, ...@@ -459,22 +459,22 @@ static void _nbu2ss_dma_map_single(struct nbu2ss_udc *udc,
if (req->unaligned) { if (req->unaligned) {
req->req.dma = ep->phys_buf; req->req.dma = ep->phys_buf;
} else { } else {
req->req.dma = dma_map_single( req->req.dma = dma_map_single(udc->gadget.dev.parent,
udc->gadget.dev.parent,
req->req.buf, req->req.buf,
req->req.length, req->req.length,
(direct == USB_DIR_IN) (direct == USB_DIR_IN)
? DMA_TO_DEVICE : DMA_FROM_DEVICE); ? DMA_TO_DEVICE
: DMA_FROM_DEVICE);
} }
req->mapped = 1; req->mapped = 1;
} else { } else {
if (!req->unaligned) if (!req->unaligned)
dma_sync_single_for_device( dma_sync_single_for_device(udc->gadget.dev.parent,
udc->gadget.dev.parent,
req->req.dma, req->req.dma,
req->req.length, req->req.length,
(direct == USB_DIR_IN) (direct == USB_DIR_IN)
? DMA_TO_DEVICE : DMA_FROM_DEVICE); ? DMA_TO_DEVICE
: DMA_FROM_DEVICE);
req->mapped = 0; req->mapped = 0;
} }
...@@ -1414,8 +1414,8 @@ static inline int _nbu2ss_req_feature(struct nbu2ss_udc *udc, bool bset) ...@@ -1414,8 +1414,8 @@ static inline int _nbu2ss_req_feature(struct nbu2ss_udc *udc, bool bset)
if (selector == USB_ENDPOINT_HALT) { if (selector == USB_ENDPOINT_HALT) {
ep_adrs = wIndex & 0xFF; ep_adrs = wIndex & 0xFF;
if (!bset) { if (!bset) {
_nbu2ss_endpoint_toggle_reset( _nbu2ss_endpoint_toggle_reset(udc,
udc, ep_adrs); ep_adrs);
} }
_nbu2ss_set_endpoint_stall(udc, ep_adrs, bset); _nbu2ss_set_endpoint_stall(udc, ep_adrs, bset);
...@@ -2594,9 +2594,9 @@ static int nbu2ss_ep_queue(struct usb_ep *_ep, ...@@ -2594,9 +2594,9 @@ static int nbu2ss_ep_queue(struct usb_ep *_ep,
if (req->unaligned) { if (req->unaligned) {
if (!ep->virt_buf) if (!ep->virt_buf)
ep->virt_buf = dma_alloc_coherent( ep->virt_buf = dma_alloc_coherent(NULL, PAGE_SIZE,
NULL, PAGE_SIZE, &ep->phys_buf,
&ep->phys_buf, GFP_ATOMIC | GFP_DMA); GFP_ATOMIC | GFP_DMA);
if (ep->epnum > 0) { if (ep->epnum > 0) {
if (ep->direct == USB_DIR_IN) if (ep->direct == USB_DIR_IN)
memcpy(ep->virt_buf, req->req.buf, memcpy(ep->virt_buf, req->req.buf,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment