summaryrefslogtreecommitdiff
path: root/src/drivers/usb
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-08-19 21:51:08 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2020-09-21 15:51:52 +0000
commitd161a2fafd14700b133b1deca7b8a9a5ca1c5283 (patch)
treecf091c2582e17442eb5096322b3c0f328cdbffa0 /src/drivers/usb
parent490546f191cf2aa1aceec97b7d0503f4fb4408f4 (diff)
src/drivers: Drop unneeded empty lines
Change-Id: I202e5d285612b9bf237b588ea3c006187623fdc3 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44609 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/drivers/usb')
-rw-r--r--src/drivers/usb/ehci.h1
-rw-r--r--src/drivers/usb/ehci_debug.c3
-rw-r--r--src/drivers/usb/gadget.c2
-rw-r--r--src/drivers/usb/pci_xhci/pci_xhci.c1
4 files changed, 0 insertions, 7 deletions
diff --git a/src/drivers/usb/ehci.h b/src/drivers/usb/ehci.h
index 5ab85963f6..9635460bdb 100644
--- a/src/drivers/usb/ehci.h
+++ b/src/drivers/usb/ehci.h
@@ -40,7 +40,6 @@ struct ehci_caps {
u8 portroute[8]; /* nibbles for routing - offset 0xC */
} __packed;
-
/* Section 2.3 Host Controller Operational Registers */
struct ehci_regs {
diff --git a/src/drivers/usb/ehci_debug.c b/src/drivers/usb/ehci_debug.c
index ab76f3bb3a..2fbdf3aff9 100644
--- a/src/drivers/usb/ehci_debug.c
+++ b/src/drivers/usb/ehci_debug.c
@@ -421,8 +421,6 @@ static int ehci_wait_for_port(struct ehci_regs *ehci_regs, int port)
return -1; //-ENOTCONN;
}
-
-
static int usbdebug_init_(uintptr_t ehci_bar, unsigned int offset, struct ehci_debug_info *info)
{
struct ehci_caps *ehci_caps;
@@ -549,7 +547,6 @@ try_next_port:
}
dprintk(BIOS_INFO, "EHCI done waiting for port.\n");
-
/* Enable the debug port */
ctrl = read32(&ehci_debug->control);
ctrl |= DBGP_CLAIM;
diff --git a/src/drivers/usb/gadget.c b/src/drivers/usb/gadget.c
index b7aad23450..c6a89bf5c0 100644
--- a/src/drivers/usb/gadget.c
+++ b/src/drivers/usb/gadget.c
@@ -17,7 +17,6 @@
#define USB_HUB_C_PORT_CONNECTION 16
#define USB_HUB_C_PORT_RESET 20
-
static int hub_port_status(const char *buf, int feature)
{
return !!(buf[feature>>3] & (1<<(feature&0x7)));
@@ -73,7 +72,6 @@ static int dbgp_hub_enable(struct ehci_dbg_port *ehci_debug, unsigned char hub_a
if (ret < 0)
goto err;
-
/* Set PORT_RESET, poll for C_PORT_RESET. */
ret = dbgp_control_msg(ehci_debug, hub_addr,
USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_OTHER,
diff --git a/src/drivers/usb/pci_xhci/pci_xhci.c b/src/drivers/usb/pci_xhci/pci_xhci.c
index a375f07a8d..6a56ca2293 100644
--- a/src/drivers/usb/pci_xhci/pci_xhci.c
+++ b/src/drivers/usb/pci_xhci/pci_xhci.c
@@ -24,7 +24,6 @@ __weak enum cb_err pci_xhci_get_wake_gpe(const struct device *dev, int *gpe)
return CB_SUCCESS;
}
-
static void xhci_count_ports(void *context, const struct xhci_supported_protocol *data)
{
struct port_counts *counts = context;