diff options
author | Yidi Lin <yidilin@chromium.org> | 2022-08-10 14:59:18 +0800 |
---|---|---|
committer | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2022-08-12 17:17:53 +0000 |
commit | 5ef258b3f6a6481d20f1fca0f60db894b80649ab (patch) | |
tree | 8fc99f95a5c066384e15bd464f04a327b3d10bb7 /payloads/libpayload/drivers/usb/xhci.c | |
parent | ad6b27e9efa84d121b1d55db44fd35a8a52635cc (diff) |
libpayload: usb: Fix spacing issues
Found by:
find payloads/libpayload/drivers/usb -type f -name "*.[ch]" | xargs \
util/lint/checkpatch.pl --types SPACING -q --fix-inplace -f
Change-Id: Id23e2e573e475c6d795812a4b2df9aeffbcaaaf4
Signed-off-by: Yidi Lin <yidilin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66596
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload/drivers/usb/xhci.c')
-rw-r--r-- | payloads/libpayload/drivers/usb/xhci.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/payloads/libpayload/drivers/usb/xhci.c b/payloads/libpayload/drivers/usb/xhci.c index c40e641c4c..6737a140ec 100644 --- a/payloads/libpayload/drivers/usb/xhci.c +++ b/payloads/libpayload/drivers/usb/xhci.c @@ -34,17 +34,17 @@ #include "xhci_private.h" #include "xhci.h" -static void xhci_start (hci_t *controller); -static void xhci_stop (hci_t *controller); -static void xhci_reset (hci_t *controller); -static void xhci_reinit (hci_t *controller); -static void xhci_shutdown (hci_t *controller); -static int xhci_bulk (endpoint_t *ep, int size, u8 *data, int finalize); -static int xhci_control (usbdev_t *dev, direction_t dir, int drlen, void *devreq, +static void xhci_start(hci_t *controller); +static void xhci_stop(hci_t *controller); +static void xhci_reset(hci_t *controller); +static void xhci_reinit(hci_t *controller); +static void xhci_shutdown(hci_t *controller); +static int xhci_bulk(endpoint_t *ep, int size, u8 *data, int finalize); +static int xhci_control(usbdev_t *dev, direction_t dir, int drlen, void *devreq, int dalen, u8 *data); -static void* xhci_create_intr_queue (endpoint_t *ep, int reqsize, int reqcount, int reqtiming); -static void xhci_destroy_intr_queue (endpoint_t *ep, void *queue); -static u8* xhci_poll_intr_queue (void *queue); +static void* xhci_create_intr_queue(endpoint_t *ep, int reqsize, int reqcount, int reqtiming); +static void xhci_destroy_intr_queue(endpoint_t *ep, void *queue); +static u8* xhci_poll_intr_queue(void *queue); /* * Some structures must not cross page boundaries. To get this, @@ -151,7 +151,7 @@ xhci_wait_ready(xhci_t *const xhci) } hci_t * -xhci_init (unsigned long physical_bar) +xhci_init(unsigned long physical_bar) { int i; @@ -167,7 +167,7 @@ xhci_init (unsigned long physical_bar) controller->bulk = xhci_bulk; controller->control = xhci_control; controller->set_address = xhci_set_address; - controller->finish_device_config= xhci_finish_device_config; + controller->finish_device_config = xhci_finish_device_config; controller->destroy_device = xhci_destroy_dev; controller->create_intr_queue = xhci_create_intr_queue; controller->destroy_intr_queue = xhci_destroy_intr_queue; @@ -306,7 +306,7 @@ _free_xhci: #if CONFIG(LP_USB_PCI) hci_t * -xhci_pci_init (pcidev_t addr) +xhci_pci_init(pcidev_t addr) { u32 reg_addr; hci_t *controller; @@ -358,7 +358,7 @@ xhci_reset(hci_t *const controller) } static void -xhci_reinit (hci_t *controller) +xhci_reinit(hci_t *controller) { xhci_t *const xhci = XHCI_INST(controller); @@ -464,7 +464,7 @@ xhci_shutdown(hci_t *const controller) } static void -xhci_start (hci_t *controller) +xhci_start(hci_t *controller) { xhci_t *const xhci = XHCI_INST(controller); @@ -474,7 +474,7 @@ xhci_start (hci_t *controller) } static void -xhci_stop (hci_t *controller) +xhci_stop(hci_t *controller) { xhci_t *const xhci = XHCI_INST(controller); |