usb: xhci: fixed brace and spacing coding style issues
Subsystems (2)
PATCH 1/1 usb: xhci: fixed brace and spacing coding style issues
Fixed brace and spacing coding style issues.
Signed-off-by Nicolas Kaiser <[email protected]>
--- drivers/usb/host/pci-quirks.c | 3 +-- drivers/usb/host/xhci-mem.c | 4 ++-- drivers/usb/host/xhci-pci.c | 2 +- drivers/usb/host/xhci-ring.c | 2 +- drivers/usb/host/xhci.c | 9 +++------ 5 files changed, 8 insertions(+), 12 deletions(-)
drivers/usb/host/pci-quirks.c +1 -2
@@ -329,9 +329,8 @@ static void __devinit quirk_usb_disable_ehci(struct pci_dev *pdev)udelay (delta); wait_time -= delta; val =readl (op_reg_base +EHCI_USBSTS ); -if ((val == ~(u32 )0 ) || (val &EHCI_USBSTS_HALTED )) { +if ((val == ~(u32 )0 ) || (val &EHCI_USBSTS_HALTED ))break ; - } }while (wait_time >0 ); }writel (0 , op_reg_base +EHCI_USBINTR );
drivers/usb/host/xhci-mem.c +2 -2
@@ -1479,7 +1479,7 @@ static int xhci_check_trb_in_td_math(struct xhci_hcd *xhci, gfp_t mem_flags)struct {dma_addr_t input_dma;struct xhci_segment *result_seg; - } simple_test_vector [] = { + } simple_test_vector[] = {/* A zeroed DMA field should fail */ {0 ,NULL },/* One TRB before the ring start should fail */
@@ -1504,7 +1504,7 @@ static int xhci_check_trb_in_td_math(struct xhci_hcd *xhci, gfp_t mem_flags)union xhci_trb *end_trb;dma_addr_t input_dma;struct xhci_segment *result_seg; - } complex_test_vector [] = { + } complex_test_vector[] = {/* Test feeding a valid DMA address from a different ring */ { .input_seg = xhci->event_ring->first_seg, .start_trb = xhci->event_ring->first_seg->trbs,
drivers/usb/host/xhci-pci.c +1 -1
@@ -176,7 +176,7 @@ static struct pci_driver xhci_pci_driver = { .remove = usb_hcd_pci_remove,/* suspend and resume implemented later */ - .shutdown = usb_hcd_pci_shutdown, + .shutdown = usb_hcd_pci_shutdown, };int xhci_register_pci (void )
drivers/usb/host/xhci-ring.c +1 -1
@@ -1857,7 +1857,7 @@ static unsigned int count_sg_trbs_needed(struct xhci_hcd *xhci, struct urb *urb) num_sgs = urb->num_sgs; temp = urb->transfer_buffer_length; -xhci_dbg (xhci,"count sg list trbs: \n" ); +xhci_dbg (xhci,"count sg list trbs:\n" ); num_trbs =0 ;for_each_sg (urb->sg, sg, num_sgs, i) {unsigned int previous_total_trbs = num_trbs;
drivers/usb/host/xhci.c +3 -6
@@ -390,9 +390,8 @@ void xhci_event_ring_work(unsigned long arg)for (i =0 ; i <MAX_HC_SLOTS ; ++i) {if (!xhci->devs[i])continue ; -for (j =0 ; j <31 ; ++j) { +for (j =0 ; j <31 ; ++j)xhci_dbg_ep_rings (xhci, i, j, &xhci->devs[i]->eps[j]); - } }if (xhci->noops_submitted !=NUM_TEST_NOOPS )
@@ -1329,9 +1328,8 @@ int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev)/* Only cache or free the old ring if it exists. * It may not if this is the first add of an endpoint. */ -if (virt_dev->eps[i].ring) { +if (virt_dev->eps[i].ring)xhci_free_or_cache_endpoint_ring (xhci, virt_dev, i); - } virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; virt_dev->eps[i].new_ring =NULL ; }
@@ -2185,9 +2183,8 @@ int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev) ret = -EINVAL ;break ; } -if (ret) { +if (ret)return ret; - } temp_64 =xhci_read_64 (xhci, &xhci->op_regs->dcbaa_ptr);xhci_dbg (xhci,"Op regs DCBAA ptr = %#016llx\n" , temp_64); xhci_dbg(xhci, "Slot ID %d dcbaa entry @%p = %#016llx\n",
Signature · 1 line
1.7.1