summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-08-19 21:49:34 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2020-09-21 16:20:57 +0000
commit3ff7bcf10e0d07f71ece45267d31ae1f83b04701 (patch)
tree8505dff0b98bee6a50fa10a5ec1a90536ec51fec /payloads/libpayload/drivers
parent99e0c7ddc1004b69df65483c029ee8915650223a (diff)
payloads: Drop unneeded empty lines
Change-Id: I6faeb7c783052edc4217d2d301dbb905e1fc6a19 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44605 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'payloads/libpayload/drivers')
-rw-r--r--payloads/libpayload/drivers/nvram.c1
-rw-r--r--payloads/libpayload/drivers/serial/qcom_qupv3_serial.c1
-rw-r--r--payloads/libpayload/drivers/storage/ahci.c2
-rw-r--r--payloads/libpayload/drivers/storage/ahci_ata.c1
-rw-r--r--payloads/libpayload/drivers/storage/ahci_atapi.c2
-rw-r--r--payloads/libpayload/drivers/storage/ahci_common.c2
-rw-r--r--payloads/libpayload/drivers/storage/ahci_private.h2
-rw-r--r--payloads/libpayload/drivers/storage/ata.c1
-rw-r--r--payloads/libpayload/drivers/storage/atapi.c1
-rw-r--r--payloads/libpayload/drivers/storage/storage.c1
-rw-r--r--payloads/libpayload/drivers/udc/chipidea.c1
-rw-r--r--payloads/libpayload/drivers/usb/dwc2_rh.c1
-rw-r--r--payloads/libpayload/drivers/usb/ehci.c2
-rw-r--r--payloads/libpayload/drivers/usb/ehci_rh.c1
-rw-r--r--payloads/libpayload/drivers/usb/ohci.c1
-rw-r--r--payloads/libpayload/drivers/usb/usbhid.c5
-rwxr-xr-xpayloads/libpayload/drivers/usb/usbmsc.c1
-rw-r--r--payloads/libpayload/drivers/usb/xhci_private.h1
-rw-r--r--payloads/libpayload/drivers/usb/xhci_rh.c1
-rw-r--r--payloads/libpayload/drivers/video/corebootfb.c1
-rw-r--r--payloads/libpayload/drivers/video/geodelx.c1
21 files changed, 0 insertions, 30 deletions
diff --git a/payloads/libpayload/drivers/nvram.c b/payloads/libpayload/drivers/nvram.c
index 40bd2fc882..4794e9b249 100644
--- a/payloads/libpayload/drivers/nvram.c
+++ b/payloads/libpayload/drivers/nvram.c
@@ -42,7 +42,6 @@
#include <libpayload-config.h>
#include <libpayload.h>
-
/**
* PCs can have either 64 (very old ones), 128, or 256 bytes of CMOS RAM.
*
diff --git a/payloads/libpayload/drivers/serial/qcom_qupv3_serial.c b/payloads/libpayload/drivers/serial/qcom_qupv3_serial.c
index 321ff46b42..77def46831 100644
--- a/payloads/libpayload/drivers/serial/qcom_qupv3_serial.c
+++ b/payloads/libpayload/drivers/serial/qcom_qupv3_serial.c
@@ -27,7 +27,6 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
/* For simplicity sake let's rely on coreboot initializing the UART. */
#include <config.h>
#include <libpayload.h>
diff --git a/payloads/libpayload/drivers/storage/ahci.c b/payloads/libpayload/drivers/storage/ahci.c
index 9f9b9b589a..ff22b19b71 100644
--- a/payloads/libpayload/drivers/storage/ahci.c
+++ b/payloads/libpayload/drivers/storage/ahci.c
@@ -39,7 +39,6 @@
#include "ahci_private.h"
-
#ifdef DEBUG_STATUS
static inline u32 _ahci_clear_status(volatile u32 *const reg,
const char *const r,
@@ -64,7 +63,6 @@ static inline u32 _ahci_clear_status(volatile u32 *const reg)
#define ahci_clear_status(p, r) _ahci_clear_status(&(p)->r)
#endif
-
static inline int ahci_port_is_active(const hba_port_t *const port)
{
return (port->sata_status & (HBA_PxSSTS_IPM_MASK | HBA_PxSSTS_DET_MASK))
diff --git a/payloads/libpayload/drivers/storage/ahci_ata.c b/payloads/libpayload/drivers/storage/ahci_ata.c
index 514692e39f..062b7ac71b 100644
--- a/payloads/libpayload/drivers/storage/ahci_ata.c
+++ b/payloads/libpayload/drivers/storage/ahci_ata.c
@@ -37,7 +37,6 @@
#include "ahci_private.h"
-
ssize_t ahci_ata_read_sectors(ata_dev_t *const ata_dev,
const lba_t start, size_t count,
u8 *const buf)
diff --git a/payloads/libpayload/drivers/storage/ahci_atapi.c b/payloads/libpayload/drivers/storage/ahci_atapi.c
index 9984b4b78d..1a757d7e9b 100644
--- a/payloads/libpayload/drivers/storage/ahci_atapi.c
+++ b/payloads/libpayload/drivers/storage/ahci_atapi.c
@@ -35,10 +35,8 @@
#include <storage/ata.h>
#include <storage/ahci.h>
-
#include "ahci_private.h"
-
ssize_t ahci_packet_read_cmd(atapi_dev_t *const _dev,
const u8 *const cmd, const size_t cmdlen,
u8 *const buf, const size_t buflen)
diff --git a/payloads/libpayload/drivers/storage/ahci_common.c b/payloads/libpayload/drivers/storage/ahci_common.c
index b8fdad202c..f3abc5f7fb 100644
--- a/payloads/libpayload/drivers/storage/ahci_common.c
+++ b/payloads/libpayload/drivers/storage/ahci_common.c
@@ -37,7 +37,6 @@
#include "ahci_private.h"
-
#ifdef DEBUG_STATUS
static inline u32 _ahci_clear_status(volatile u32 *const reg,
const char *const r,
@@ -62,7 +61,6 @@ static inline u32 _ahci_clear_status(volatile u32 *const reg)
#define ahci_clear_status(p, r) _ahci_clear_status(&(p)->r)
#endif
-
/** Give a buffer with even address. */
static u8 *ahci_prdbuf_init(ahci_dev_t *const dev,
u8 *const user_buf, const size_t len,
diff --git a/payloads/libpayload/drivers/storage/ahci_private.h b/payloads/libpayload/drivers/storage/ahci_private.h
index 7f7c592048..1e8c85f199 100644
--- a/payloads/libpayload/drivers/storage/ahci_private.h
+++ b/payloads/libpayload/drivers/storage/ahci_private.h
@@ -120,7 +120,6 @@ typedef volatile struct {
#define HBA_CTRL_INTR_EN (1 << 1)
#define HBA_CTRL_RESET (1 << 0)
-
typedef volatile struct {
u8 dma_setup_fis[28];
u8 _reserved0[4];
@@ -229,5 +228,4 @@ ssize_t ahci_ata_read_sectors(ata_dev_t *const ata_dev,
const lba_t start, size_t count,
u8 *const buf);
-
#endif /* _AHCI_PRIVATE_H */
diff --git a/payloads/libpayload/drivers/storage/ata.c b/payloads/libpayload/drivers/storage/ata.c
index 68f88f6eb7..00f1d88854 100644
--- a/payloads/libpayload/drivers/storage/ata.c
+++ b/payloads/libpayload/drivers/storage/ata.c
@@ -33,7 +33,6 @@
#include <storage/ata.h>
-
/** Reads non-sector-aligned blocks of 512 bytes. */
static ssize_t ata_read_unaligned(ata_dev_t *const dev,
const lba_t blk_start, size_t blk_count,
diff --git a/payloads/libpayload/drivers/storage/atapi.c b/payloads/libpayload/drivers/storage/atapi.c
index f42c1f4b80..7f46e9cc3e 100644
--- a/payloads/libpayload/drivers/storage/atapi.c
+++ b/payloads/libpayload/drivers/storage/atapi.c
@@ -33,7 +33,6 @@
#include <storage/ata.h>
#include <storage/atapi.h>
-
static int atapi_request_sense(atapi_dev_t *const dev)
{
u8 cdb[12] = { 0, };
diff --git a/payloads/libpayload/drivers/storage/storage.c b/payloads/libpayload/drivers/storage/storage.c
index 3ddafdce07..24b9024a93 100644
--- a/payloads/libpayload/drivers/storage/storage.c
+++ b/payloads/libpayload/drivers/storage/storage.c
@@ -32,7 +32,6 @@
#endif
#include <storage/storage.h>
-
static storage_dev_t **devices = NULL;
static size_t devices_length = 0;
static size_t dev_count = 0;
diff --git a/payloads/libpayload/drivers/udc/chipidea.c b/payloads/libpayload/drivers/udc/chipidea.c
index dd1601367b..3df7d2409c 100644
--- a/payloads/libpayload/drivers/udc/chipidea.c
+++ b/payloads/libpayload/drivers/udc/chipidea.c
@@ -300,7 +300,6 @@ static void start_setup(struct usbdev_ctrl *this, int ep)
udc_handle_setup(this, ep, &dr);
}
-
static void chipidea_enqueue_packet(struct usbdev_ctrl *this, int endpoint,
int in_dir, void *data, int len, int zlp, int autofree)
{
diff --git a/payloads/libpayload/drivers/usb/dwc2_rh.c b/payloads/libpayload/drivers/usb/dwc2_rh.c
index ff15e9902d..c0f25f907a 100644
--- a/payloads/libpayload/drivers/usb/dwc2_rh.c
+++ b/payloads/libpayload/drivers/usb/dwc2_rh.c
@@ -12,7 +12,6 @@
* GNU General Public License for more details.
*/
-
#include <usb/usb.h>
#include "generic_hub.h"
#include "dwc2_private.h"
diff --git a/payloads/libpayload/drivers/usb/ehci.c b/payloads/libpayload/drivers/usb/ehci.c
index cb3c1c543e..97caf202d9 100644
--- a/payloads/libpayload/drivers/usb/ehci.c
+++ b/payloads/libpayload/drivers/usb/ehci.c
@@ -426,7 +426,6 @@ oom:
return -1;
}
-
/* FIXME: Handle control transfers as 3 QHs, so the 2nd stage can be >0x4000 bytes */
static int ehci_control (usbdev_t *dev, direction_t dir, int drlen, void *setup,
int dalen, u8 *src)
@@ -544,7 +543,6 @@ oom:
return -1;
}
-
typedef struct _intr_qtd_t intr_qtd_t;
struct _intr_qtd_t {
diff --git a/payloads/libpayload/drivers/usb/ehci_rh.c b/payloads/libpayload/drivers/usb/ehci_rh.c
index e51f332822..edb1b4ad4d 100644
--- a/payloads/libpayload/drivers/usb/ehci_rh.c
+++ b/payloads/libpayload/drivers/usb/ehci_rh.c
@@ -171,7 +171,6 @@ ehci_rh_poll (usbdev_t *dev)
ehci_rh_scanport (dev, port);
}
-
void
ehci_rh_init (usbdev_t *dev)
{
diff --git a/payloads/libpayload/drivers/usb/ohci.c b/payloads/libpayload/drivers/usb/ohci.c
index 87674eec6b..ec14144711 100644
--- a/payloads/libpayload/drivers/usb/ohci.c
+++ b/payloads/libpayload/drivers/usb/ohci.c
@@ -627,7 +627,6 @@ ohci_bulk (endpoint_t *ep, int dalen, u8 *src, int finalize)
return result;
}
-
struct _intr_queue;
struct _intrq_td {
diff --git a/payloads/libpayload/drivers/usb/usbhid.c b/payloads/libpayload/drivers/usb/usbhid.c
index 921e17608e..87e87411fe 100644
--- a/payloads/libpayload/drivers/usb/usbhid.c
+++ b/payloads/libpayload/drivers/usb/usbhid.c
@@ -131,8 +131,6 @@ const char *countries[36][2] = {
/* 36 - 255: Reserved */
};
-
-
struct layout_maps {
const char *country;
const short map[4][0x80];
@@ -247,7 +245,6 @@ static const struct layout_maps keyboard_layouts[] = {
//#endif
};
-
static void usb_hid_keyboard_queue(int ch) {
/* ignore key presses if buffer full */
if (keycount < KEYBOARD_BUFFER_SIZE)
@@ -316,7 +313,6 @@ usb_hid_process_keyboard_event(usbhid_inst_t *const inst,
if (skip)
continue;
-
/* Mask off KB_MOD_CTRL */
keypress = map->map[modifiers & 0x03][current->keys[i]];
@@ -397,7 +393,6 @@ static struct console_input_driver cons = {
.input_type = CONSOLE_INPUT_TYPE_USB,
};
-
static int usb_hid_set_layout (const char *country)
{
/* FIXME should be per keyboard */
diff --git a/payloads/libpayload/drivers/usb/usbmsc.c b/payloads/libpayload/drivers/usb/usbmsc.c
index ed91c9938b..96c4946b76 100755
--- a/payloads/libpayload/drivers/usb/usbmsc.c
+++ b/payloads/libpayload/drivers/usb/usbmsc.c
@@ -613,7 +613,6 @@ usb_msc_init (usbdev_t *dev)
usb_debug (" it uses %s protocol\n",
msc_protocol_strings[interface->bInterfaceProtocol]);
-
if (interface->bInterfaceProtocol != 0x50) {
usb_debug (" Protocol not supported.\n");
usb_detach_device (dev->controller, dev->address);
diff --git a/payloads/libpayload/drivers/usb/xhci_private.h b/payloads/libpayload/drivers/usb/xhci_private.h
index 137c88e0b9..34d3651daf 100644
--- a/payloads/libpayload/drivers/usb/xhci_private.h
+++ b/payloads/libpayload/drivers/usb/xhci_private.h
@@ -515,7 +515,6 @@ static inline int xhci_ep_id(const endpoint_t *const ep) {
return ((ep->endpoint & 0x7f) * 2) + (ep->direction != OUT);
}
-
#ifdef XHCI_DUMPS
void xhci_dump_slotctx(const slotctx_t *);
void xhci_dump_epctx(const epctx_t *);
diff --git a/payloads/libpayload/drivers/usb/xhci_rh.c b/payloads/libpayload/drivers/usb/xhci_rh.c
index 9b711c8586..bf4c2bc5c1 100644
--- a/payloads/libpayload/drivers/usb/xhci_rh.c
+++ b/payloads/libpayload/drivers/usb/xhci_rh.c
@@ -135,7 +135,6 @@ xhci_rh_enable_port(usbdev_t *const dev, int port)
return 0;
}
-
static const generic_hub_ops_t xhci_rh_ops = {
.hub_status_changed = xhci_rh_hub_status_changed,
.port_status_changed = xhci_rh_port_status_changed,
diff --git a/payloads/libpayload/drivers/video/corebootfb.c b/payloads/libpayload/drivers/video/corebootfb.c
index 1865ad37bf..51922d9b06 100644
--- a/payloads/libpayload/drivers/video/corebootfb.c
+++ b/payloads/libpayload/drivers/video/corebootfb.c
@@ -138,7 +138,6 @@ static void corebootfb_putchar(u8 row, u8 col, unsigned int ch)
((((vga_colors[fg] >> 16) & 0xff) >> (8 - fbinfo.red_mask_size)) << fbinfo.red_mask_pos);
}
-
dst = FB + ((row * font_height) * fbinfo.bytes_per_line);
dst += (col * font_width * (fbinfo.bits_per_pixel >> 3));
diff --git a/payloads/libpayload/drivers/video/geodelx.c b/payloads/libpayload/drivers/video/geodelx.c
index 7c51fc21e6..8799bca669 100644
--- a/payloads/libpayload/drivers/video/geodelx.c
+++ b/payloads/libpayload/drivers/video/geodelx.c
@@ -176,7 +176,6 @@ static void init_video_mode(void)
writel(((vga_mode.hactive - 1) << 16) | (vga_mode.vactive - 1),
DC + 0x5C);
-
/* Write the VG configuration */
writel(0x290000F | vga_mode.synccfg, VG + 0x08);