summaryrefslogtreecommitdiff
path: root/src/superio/smsc
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-11-13 10:03:31 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-11-19 08:17:06 +0000
commit0ce41f1a116a816e774ebbd1130d27d7ee70e7e9 (patch)
tree983a793e01bbf09ed1e9c74534d4b78f9d3f2866 /src/superio/smsc
parent16f9bf83e00c786275d3fcc9d512d145ef6c93c9 (diff)
downloadcoreboot-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')
-rw-r--r--src/superio/smsc/dme1737/superio.c2
-rw-r--r--src/superio/smsc/lpc47b272/superio.c2
-rw-r--r--src/superio/smsc/lpc47b397/superio.c4
-rw-r--r--src/superio/smsc/lpc47m10x/superio.c2
-rw-r--r--src/superio/smsc/lpc47m15x/superio.c2
-rw-r--r--src/superio/smsc/lpc47n217/early_serial.c4
-rw-r--r--src/superio/smsc/lpc47n217/superio.c6
-rw-r--r--src/superio/smsc/mec1308/superio.c2
-rw-r--r--src/superio/smsc/sch4037/superio.c2
9 files changed, 13 insertions, 13 deletions
diff --git a/src/superio/smsc/dme1737/superio.c b/src/superio/smsc/dme1737/superio.c
index 455fd5ec35..a6f9a12a5a 100644
--- a/src/superio/smsc/dme1737/superio.c
+++ b/src/superio/smsc/dme1737/superio.c
@@ -32,7 +32,7 @@ static void dme1737_init(struct device *dev)
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case DME1737_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/smsc/lpc47b272/superio.c b/src/superio/smsc/lpc47b272/superio.c
index 3f8bc2ba86..2db4fac2f6 100644
--- a/src/superio/smsc/lpc47b272/superio.c
+++ b/src/superio/smsc/lpc47b272/superio.c
@@ -43,7 +43,7 @@ static void lpc47b272_init(struct device *dev)
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case LPC47B272_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/smsc/lpc47b397/superio.c b/src/superio/smsc/lpc47b397/superio.c
index ab2271a8ae..9e943eab31 100644
--- a/src/superio/smsc/lpc47b397/superio.c
+++ b/src/superio/smsc/lpc47b397/superio.c
@@ -43,7 +43,7 @@ static void lpc47b397_init(struct device *dev)
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case LPC47B397_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
@@ -55,7 +55,7 @@ static void lpc47b397_pnp_enable_resources(struct device *dev)
pnp_enable_resources(dev);
pnp_enter_conf_mode(dev);
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case LPC47B397_HWM:
printk(BIOS_DEBUG, "LPC47B397 SensorBus register access enabled\n");
pnp_set_logical_device(dev);
diff --git a/src/superio/smsc/lpc47m10x/superio.c b/src/superio/smsc/lpc47m10x/superio.c
index e71b78f1dc..28aa52cb12 100644
--- a/src/superio/smsc/lpc47m10x/superio.c
+++ b/src/superio/smsc/lpc47m10x/superio.c
@@ -41,7 +41,7 @@ static void lpc47m10x_init(struct device *dev)
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case LPC47M10X2_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/smsc/lpc47m15x/superio.c b/src/superio/smsc/lpc47m15x/superio.c
index 23c13115a7..9cc6470e31 100644
--- a/src/superio/smsc/lpc47m15x/superio.c
+++ b/src/superio/smsc/lpc47m15x/superio.c
@@ -63,7 +63,7 @@ static void lpc47m15x_init(struct device *dev)
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case LPC47M15X_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
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;
diff --git a/src/superio/smsc/mec1308/superio.c b/src/superio/smsc/mec1308/superio.c
index 5b9f0da2e8..3e6b0bf3be 100644
--- a/src/superio/smsc/mec1308/superio.c
+++ b/src/superio/smsc/mec1308/superio.c
@@ -31,7 +31,7 @@ static void mec1308_init(struct device *dev)
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case MEC1308_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/smsc/sch4037/superio.c b/src/superio/smsc/sch4037/superio.c
index 3f2a1ddeac..5158b12888 100644
--- a/src/superio/smsc/sch4037/superio.c
+++ b/src/superio/smsc/sch4037/superio.c
@@ -30,7 +30,7 @@ static void sch4037_init(struct device *dev)
return;
}
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case SCH4037_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;