diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-11-13 10:03:31 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-11-19 08:17:06 +0000 |
commit | 0ce41f1a116a816e774ebbd1130d27d7ee70e7e9 (patch) | |
tree | 983a793e01bbf09ed1e9c74534d4b78f9d3f2866 /src/superio/smsc/lpc47n217 | |
parent | 16f9bf83e00c786275d3fcc9d512d145ef6c93c9 (diff) | |
download | coreboot-0ce41f1a116a816e774ebbd1130d27d7ee70e7e9.tar.xz |
src: Add required space after "switch"
Change-Id: I85cf93e30606bc7838852bd300a369e79370629a
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/29623
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/superio/smsc/lpc47n217')
-rw-r--r-- | src/superio/smsc/lpc47n217/early_serial.c | 4 | ||||
-rw-r--r-- | src/superio/smsc/lpc47n217/superio.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/superio/smsc/lpc47n217/early_serial.c b/src/superio/smsc/lpc47n217/early_serial.c index 454d77f046..f9ff04e28f 100644 --- a/src/superio/smsc/lpc47n217/early_serial.c +++ b/src/superio/smsc/lpc47n217/early_serial.c @@ -43,7 +43,7 @@ static void lpc47n217_pnp_set_iobase(pnp_devfn_t dev, u16 iobase) /* LPC47N217 requires base ports to be a multiple of 4. */ ASSERT(!(iobase & 0x3)); - switch(dev & 0xFF) { + switch (dev & 0xFF) { case LPC47N217_PP: pnp_write_config(dev, 0x23, (iobase >> 2) & 0xff); break; @@ -74,7 +74,7 @@ static void lpc47n217_pnp_set_enable(pnp_devfn_t dev, int enable) { u8 power_register = 0, power_mask = 0, current_power, new_power; - switch(dev & 0xFF) { + switch (dev & 0xFF) { case LPC47N217_PP: power_register = 0x01; power_mask = 0x04; diff --git a/src/superio/smsc/lpc47n217/superio.c b/src/superio/smsc/lpc47n217/superio.c index e63645e522..0a14e4c44d 100644 --- a/src/superio/smsc/lpc47n217/superio.c +++ b/src/superio/smsc/lpc47n217/superio.c @@ -163,7 +163,7 @@ static void lpc47n217_pnp_set_iobase(struct device *dev, u16 iobase) { ASSERT(!(iobase & 0x3)); - switch(dev->path.pnp.device) { + switch (dev->path.pnp.device) { case LPC47N217_PP: pnp_write_config(dev, 0x23, (iobase >> 2) & 0xff); break; @@ -201,7 +201,7 @@ static void lpc47n217_pnp_set_irq(struct device *dev, u8 irq) u8 irq_config_register = 0, irq_config_mask = 0; u8 current_config, new_config; - switch(dev->path.pnp.device) { + switch (dev->path.pnp.device) { case LPC47N217_PP: irq_config_register = 0x27; irq_config_mask = 0x0F; @@ -231,7 +231,7 @@ static void lpc47n217_pnp_set_enable(struct device *dev, int enable) { u8 power_register = 0, power_mask = 0, current_power, new_power; - switch(dev->path.pnp.device) { + switch (dev->path.pnp.device) { case LPC47N217_PP: power_register = 0x01; power_mask = 0x04; |