summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-02-04 12:16:38 +0100
committerNico Huber <nico.h@gmx.de>2019-03-04 15:46:25 +0000
commit0cacb11c6252b6e1f4f0a2a33b47717ff22995d9 (patch)
tree062ee516f90ae51baf0f5c0f8ffe27c8c91bc4bb
parent1cf369fb59546e705c5ca9368e629681c98b2893 (diff)
downloadflashrom-0cacb11c6252b6e1f4f0a2a33b47717ff22995d9.tar.gz
flashrom-0cacb11c6252b6e1f4f0a2a33b47717ff22995d9.tar.bz2
flashrom-0cacb11c6252b6e1f4f0a2a33b47717ff22995d9.zip
Remove trailing whitespace
Change-Id: I1ff9418bcf150558ce7c97fafa3a68e5fa59f11e Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/31227 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--at45db.c10
-rw-r--r--chipset_enable.c2
-rw-r--r--dediprog.c2
-rw-r--r--it87spi.c2
-rw-r--r--pickit2_spi.c6
-rw-r--r--rayer_spi.c2
-rw-r--r--sfdp.c2
-rw-r--r--udelay.c6
8 files changed, 16 insertions, 16 deletions
diff --git a/at45db.c b/at45db.c
index 619d41cfb..38c068585 100644
--- a/at45db.c
+++ b/at45db.c
@@ -341,7 +341,7 @@ int spi_erase_at45db_page(struct flashctx *flash, unsigned int addr, unsigned in
{
const unsigned int page_size = flash->chip->page_size;
const unsigned int total_size = flash->chip->total_size * 1024;
-
+
if ((addr % page_size) != 0 || (blocklen % page_size) != 0) {
msg_cerr("%s: cannot erase partial pages: addr=%u, blocklen=%u\n", __func__, addr, blocklen);
return 1;
@@ -361,7 +361,7 @@ int spi_erase_at45db_block(struct flashctx *flash, unsigned int addr, unsigned i
{
const unsigned int page_size = flash->chip->page_size;
const unsigned int total_size = flash->chip->total_size * 1024;
-
+
if ((addr % page_size) != 0 || (blocklen % page_size) != 0) { // FIXME: should check blocks not pages
msg_cerr("%s: cannot erase partial pages: addr=%u, blocklen=%u\n", __func__, addr, blocklen);
return 1;
@@ -381,7 +381,7 @@ int spi_erase_at45db_sector(struct flashctx *flash, unsigned int addr, unsigned
{
const unsigned int page_size = flash->chip->page_size;
const unsigned int total_size = flash->chip->total_size * 1024;
-
+
if ((addr % page_size) != 0 || (blocklen % page_size) != 0) { // FIXME: should check sectors not pages
msg_cerr("%s: cannot erase partial pages: addr=%u, blocklen=%u\n", __func__, addr, blocklen);
return 1;
@@ -400,7 +400,7 @@ int spi_erase_at45db_sector(struct flashctx *flash, unsigned int addr, unsigned
int spi_erase_at45db_chip(struct flashctx *flash, unsigned int addr, unsigned int blocklen)
{
const unsigned int total_size = flash->chip->total_size * 1024;
-
+
if ((addr + blocklen) > total_size) {
msg_cerr("%s: tried to erase beyond flash boundary: addr=%u, blocklen=%u, size=%u\n",
__func__, addr, blocklen, total_size);
@@ -532,7 +532,7 @@ int spi_write_at45db(struct flashctx *flash, const uint8_t *buf, unsigned int st
{
const unsigned int page_size = flash->chip->page_size;
const unsigned int total_size = flash->chip->total_size;
-
+
if ((start % page_size) != 0 || (len % page_size) != 0) {
msg_cerr("%s: cannot write partial pages: start=%u, len=%u\n", __func__, start, len);
return 1;
diff --git a/chipset_enable.c b/chipset_enable.c
index 4d624a33b..6280876bc 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -737,7 +737,7 @@ static int enable_flash_ich_spi(struct pci_dev *dev, enum ich_chipset ich_genera
int ret_spi = ich_init_spi(spibar, ich_generation);
if (ret_spi == ERROR_FATAL)
return ret_spi;
-
+
if (ret_fwh || ret_spi)
return ERROR_NONFATAL;
diff --git a/dediprog.c b/dediprog.c
index 72818ea96..44a0018d8 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -697,7 +697,7 @@ static int dediprog_spi_send_command(struct flashctx *flash,
msg_perr("Invalid readcnt=%i, aborting.\n", readcnt);
return 1;
}
-
+
unsigned int idx, value;
/* New protocol has options and timeout combined as value while the old one used the value field for
* timeout and the index field for options. */
diff --git a/it87spi.c b/it87spi.c
index efc2e0265..df9f664c9 100644
--- a/it87spi.c
+++ b/it87spi.c
@@ -124,7 +124,7 @@ static uint16_t it87spi_probe(uint16_t port)
uint16_t flashport = 0;
enter_conf_mode_ite(port);
-
+
char *param = extract_programmer_param("dualbiosindex");
if (param != NULL) {
sio_write(port, 0x07, 0x07); /* Select GPIO LDN */
diff --git a/pickit2_spi.c b/pickit2_spi.c
index a7c90a5fb..4354025ea 100644
--- a/pickit2_spi.c
+++ b/pickit2_spi.c
@@ -120,7 +120,7 @@ static int pickit2_get_firmware_version(void)
ret = usb_interrupt_write(pickit2_handle, ENDPOINT_OUT, (char *)command, CMD_LENGTH, DFLT_TIMEOUT);
ret = usb_interrupt_read(pickit2_handle, ENDPOINT_IN, (char *)command, CMD_LENGTH, DFLT_TIMEOUT);
-
+
msg_pdbg("PICkit2 Firmware Version: %d.%d\n", (int)command[0], (int)command[1]);
if (ret != CMD_LENGTH) {
msg_perr("Command Get Firmware Version failed (%s)!\n", usb_strerror());
@@ -240,7 +240,7 @@ static int pickit2_spi_send_command(struct flashctx *flash, unsigned int writecn
buf[i++] = 10;
else
buf[i++] = 13;
-
+
/* Assert CS# */
buf[i++] = SCR_VPP_OFF;
buf[i++] = SCR_MCLR_GND_ON;
@@ -291,7 +291,7 @@ static int pickit2_spi_send_command(struct flashctx *flash, unsigned int writecn
readcnt, ret);
return 1;
}
-
+
/* Actual data starts at byte number two */
memcpy(readarr, &buf[1], readcnt);
}
diff --git a/rayer_spi.c b/rayer_spi.c
index 4f8e1d6d2..ef8ac2677 100644
--- a/rayer_spi.c
+++ b/rayer_spi.c
@@ -200,7 +200,7 @@ int rayer_spi_init(void)
lpt_iobase = 0x378;
}
free(arg);
-
+
msg_pdbg("Using address 0x%x as I/O base for parallel port access.\n",
lpt_iobase);
diff --git a/sfdp.c b/sfdp.c
index e1568c022..97f562079 100644
--- a/sfdp.c
+++ b/sfdp.c
@@ -136,7 +136,7 @@ static int sfdp_fill_flash(struct flashchip *chip, uint8_t *buf, uint16_t len)
return 1;
}
msg_cdbg2("\n");
-
+
/* 1. double word */
tmp32 = ((unsigned int)buf[(4 * 0) + 0]);
tmp32 |= ((unsigned int)buf[(4 * 0) + 1]) << 8;
diff --git a/udelay.c b/udelay.c
index c3f14f3e6..f6fd103ca 100644
--- a/udelay.c
+++ b/udelay.c
@@ -92,10 +92,10 @@ static unsigned long measure_os_delay_resolution(void)
unsigned long timeusec;
struct timeval start, end;
unsigned long counter = 0;
-
+
gettimeofday(&start, NULL);
timeusec = 0;
-
+
while (!timeusec && (++counter < 1000000000)) {
gettimeofday(&end, NULL);
timeusec = 1000000 * (end.tv_sec - start.tv_sec) +
@@ -115,7 +115,7 @@ static unsigned long measure_delay(unsigned int usecs)
{
unsigned long timeusec;
struct timeval start, end;
-
+
gettimeofday(&start, NULL);
myusec_delay(usecs);
gettimeofday(&end, NULL);