summaryrefslogtreecommitdiff
path: root/src/southbridge/nvidia/mcp55
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-04-26 22:16:42 +0200
committerFelix Held <felix-coreboot@felixheld.de>2018-04-29 16:46:38 +0000
commit64e091fc8a5f9044995de58a5780342fbeb2acf8 (patch)
tree3b82ade92a6cfea6af9f8d98f4c8fa7608c2a42e /src/southbridge/nvidia/mcp55
parent6c4861859761e1110e9651b989a521152394fcf3 (diff)
southbridge/nvidia: Remove spaces before/after parenthesis
Change-Id: I94a87d631c9336b861523592ff217fe823436b36 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/25879 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/southbridge/nvidia/mcp55')
-rw-r--r--src/southbridge/nvidia/mcp55/early_setup_car.c4
-rw-r--r--src/southbridge/nvidia/mcp55/lpc.c2
-rw-r--r--src/southbridge/nvidia/mcp55/smbus.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/southbridge/nvidia/mcp55/early_setup_car.c b/src/southbridge/nvidia/mcp55/early_setup_car.c
index 8019a8ef21..6ddd59e850 100644
--- a/src/southbridge/nvidia/mcp55/early_setup_car.c
+++ b/src/southbridge/nvidia/mcp55/early_setup_car.c
@@ -83,7 +83,7 @@ static void mcp55_early_set_port(unsigned mcp55_num, unsigned *busn,
};
int j;
- for (j = 0; j < mcp55_num; j++ ) {
+ for (j = 0; j < mcp55_num; j++) {
setup_resource_map_offset(ctrl_devport_conf,
ARRAY_SIZE(ctrl_devport_conf),
PCI_DEV(busn[j], devn[j], 0) , io_base[j]);
@@ -100,7 +100,7 @@ static void mcp55_early_clear_port(unsigned mcp55_num, unsigned *busn,
};
int j;
- for (j = 0; j < mcp55_num; j++ ) {
+ for (j = 0; j < mcp55_num; j++) {
setup_resource_map_offset(ctrl_devport_conf_clear,
ARRAY_SIZE(ctrl_devport_conf_clear),
PCI_DEV(busn[j], devn[j], 0) , io_base[j]);
diff --git a/src/southbridge/nvidia/mcp55/lpc.c b/src/southbridge/nvidia/mcp55/lpc.c
index eeb6c1b1d0..180b9a8fd0 100644
--- a/src/southbridge/nvidia/mcp55/lpc.c
+++ b/src/southbridge/nvidia/mcp55/lpc.c
@@ -131,7 +131,7 @@ static void lpc_init(device_t dev)
if (nmi_option)
byte &= ~(1 << 7); /* Set NMI. */
else
- byte |= ( 1 << 7); /* Can't mask NMI from PCI-E and NMI_NOW. */
+ byte |= (1 << 7); /* Can't mask NMI from PCI-E and NMI_NOW. */
if (byte != byte_old)
outb(byte, 0x70);
diff --git a/src/southbridge/nvidia/mcp55/smbus.h b/src/southbridge/nvidia/mcp55/smbus.h
index a588a097f0..274ccfea38 100644
--- a/src/southbridge/nvidia/mcp55/smbus.h
+++ b/src/southbridge/nvidia/mcp55/smbus.h
@@ -45,7 +45,7 @@ static int smbus_wait_until_done(unsigned smbus_io_base)
smbus_delay();
val = inb(smbus_io_base + SMBHSTSTAT);
- if ( (val & 0xff) != 0) {
+ if ((val & 0xff) != 0) {
return 0;
}
} while (--loops);