From b9810a4cd6ec082eaab476540324ae927cae1b53 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 23 Jul 2017 20:00:04 -0600 Subject: src/drivers: Fix checkpatch warning: no spaces at the start of a line This excludes files which are mostly spaces, which I felt should be handled separately. Change-Id: I33043a3090e2fc6e9d2fd81e8a5e46fb6cb0aa35 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/20731 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Werner Zeh --- src/drivers/usb/ehci_debug.c | 8 ++++---- src/drivers/usb/gadget.c | 2 +- src/drivers/usb/usb_ch9.h | 20 ++++++++++---------- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'src/drivers/usb') diff --git a/src/drivers/usb/ehci_debug.c b/src/drivers/usb/ehci_debug.c index 6fcf683fe6..9491a8ffbe 100644 --- a/src/drivers/usb/ehci_debug.c +++ b/src/drivers/usb/ehci_debug.c @@ -455,10 +455,10 @@ try_next_port: dprintk(BIOS_INFO, "debug_port: %d\n", debug_port); dprintk(BIOS_INFO, "n_ports: %d\n", n_ports); - for (i = 1; i <= n_ports; i++) { - portsc = read32(&ehci_regs->port_status[i-1]); - dprintk(BIOS_INFO, "PORTSC #%d: %08x\n", i, portsc); - } + for (i = 1; i <= n_ports; i++) { + portsc = read32(&ehci_regs->port_status[i-1]); + dprintk(BIOS_INFO, "PORTSC #%d: %08x\n", i, portsc); + } if (port_map_tried && (new_debug_port != debug_port)) { if (--playtimes) { diff --git a/src/drivers/usb/gadget.c b/src/drivers/usb/gadget.c index 7a1f073a5c..ee18bd6b48 100644 --- a/src/drivers/usb/gadget.c +++ b/src/drivers/usb/gadget.c @@ -37,7 +37,7 @@ static int hub_port_status(const char * buf, int feature) /* After USB port reset, treat device number 0 as an USB hub. Assign it with * a device number hub_addr. Then apply enable and reset on downstream port. */ - static int dbgp_hub_enable(struct ehci_dbg_port *ehci_debug, unsigned char hub_addr, +static int dbgp_hub_enable(struct ehci_dbg_port *ehci_debug, unsigned char hub_addr, unsigned char port) { char status[8]; diff --git a/src/drivers/usb/usb_ch9.h b/src/drivers/usb/usb_ch9.h index 271b7d1cac..d7f39dde24 100644 --- a/src/drivers/usb/usb_ch9.h +++ b/src/drivers/usb/usb_ch9.h @@ -108,20 +108,20 @@ #define USB_PID_DATA_TOGGLE 0x88 struct usb_ctrlrequest { - u8 bRequestType; - u8 bRequest; - u16 wValue; - u16 wIndex; - u16 wLength; + u8 bRequestType; + u8 bRequest; + u16 wValue; + u16 wIndex; + u16 wLength; } __packed; struct usb_debug_descriptor { - u8 bLength; - u8 bDescriptorType; + u8 bLength; + u8 bDescriptorType; - /* bulk endpoints with 8 byte maxpacket */ - u8 bDebugInEndpoint; - u8 bDebugOutEndpoint; + /* bulk endpoints with 8 byte maxpacket */ + u8 bDebugInEndpoint; + u8 bDebugOutEndpoint; }; #endif -- cgit v1.2.3