remove trailing whitespace
Change-Id: Ib91889a374515d36a2b12b53aeb12b6ea6e22732 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/364 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
committed by
Patrick Georgi
parent
784544b934
commit
5ff7c13e85
@@ -36,7 +36,7 @@ unsigned int idemp(unsigned int x)
|
||||
return x;
|
||||
}
|
||||
|
||||
/* This is a wrapper around the swab32() macro to make it
|
||||
/* This is a wrapper around the swab32() macro to make it
|
||||
* usable for the current implementation of parse_elf_to_stage()
|
||||
*/
|
||||
static unsigned int swap32(unsigned int x)
|
||||
|
@@ -126,7 +126,7 @@ int ec_ext_write(uint16_t addr, uint8_t data)
|
||||
send_ec_data(addr & 0xff);
|
||||
send_ec_command(WX_EC);
|
||||
send_ec_data(addr >> 8);
|
||||
|
||||
|
||||
return send_ec_data(data);
|
||||
}
|
||||
|
||||
|
@@ -311,7 +311,7 @@ void inject_region(char *filename, char *image, int size, int region_type,
|
||||
exit(EXIT_FAILURE);
|
||||
frba_t *frba =
|
||||
(frba_t *) (image + (((fdb->flmap0 >> 16) & 0xff) << 4));
|
||||
|
||||
|
||||
region_t region = get_region(frba, region_type);
|
||||
if (region.size <= 0xfff) {
|
||||
fprintf(stderr, "Region %s is disabled in target. Not injecting.\n",
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <DirectHW/DirectHW.h>
|
||||
#endif
|
||||
#if defined(__NetBSD__)
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
#include <machine/sysarch.h>
|
||||
|
||||
static inline void outb(uint8_t value, uint16_t port)
|
||||
|
@@ -140,13 +140,13 @@ int main(int argc, char *argv[])
|
||||
fprintf(stderr, "Couldn't stat '%s'\n", nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_FILE].param);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
if (fd_stat.st_size < 128) {
|
||||
lseek(fd, 127, SEEK_SET);
|
||||
write(fd, "\0", 1);
|
||||
fsync(fd);
|
||||
}
|
||||
|
||||
|
||||
cmos_default = mmap(NULL, 128, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
|
||||
if (cmos_default == MAP_FAILED) {
|
||||
fprintf(stderr, "Couldn't map '%s'\n", nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_FILE].param);
|
||||
|
0
util/sconfig/main.c
Executable file → Normal file
0
util/sconfig/main.c
Executable file → Normal file
0
util/sconfig/sconfig.h
Executable file → Normal file
0
util/sconfig/sconfig.h
Executable file → Normal file
@@ -90,7 +90,7 @@ uint16_t detect_ec(void)
|
||||
return 0;
|
||||
|
||||
ec_port = pci_read_word(dev, 0xa4);
|
||||
|
||||
|
||||
if (!(ec_port & 0x1))
|
||||
return 0;
|
||||
|
||||
|
@@ -257,7 +257,7 @@ void probe_idregs_nuvoton(uint16_t port)
|
||||
chip_found = 1;
|
||||
dump_superio("Nuvoton", reg_table, port, chip_id, LDN_SEL);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (verbose)
|
||||
printf(NOTFOUND "chip_id=0x%04x\n", chip_id);
|
||||
|
Reference in New Issue
Block a user