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>
diff --git a/src/superio/fintek/f71863fg/superio.c b/src/superio/fintek/f71863fg/superio.c
index a19b1d0..1b37bf2 100644
--- a/src/superio/fintek/f71863fg/superio.c
+++ b/src/superio/fintek/f71863fg/superio.c
@@ -29,7 +29,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case F71863FG_KBC:
res0 = find_resource(dev, PNP_IDX_IO0);
diff --git a/src/superio/fintek/f71869ad/superio.c b/src/superio/fintek/f71869ad/superio.c
index 5625a35..d466a76 100644
--- a/src/superio/fintek/f71869ad/superio.c
+++ b/src/superio/fintek/f71869ad/superio.c
@@ -30,7 +30,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case F71869AD_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
diff --git a/src/superio/fintek/f71872/superio.c b/src/superio/fintek/f71872/superio.c
index 47ecf3d..8634451 100644
--- a/src/superio/fintek/f71872/superio.c
+++ b/src/superio/fintek/f71872/superio.c
@@ -28,7 +28,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case F71872_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
diff --git a/src/superio/fintek/f81216h/early_serial.c b/src/superio/fintek/f81216h/early_serial.c
index 782a9ea..9e8e48b 100644
--- a/src/superio/fintek/f81216h/early_serial.c
+++ b/src/superio/fintek/f81216h/early_serial.c
@@ -38,7 +38,7 @@
void f81216h_enable_serial(pnp_devfn_t dev, u16 iobase, mode_key k)
{
u8 key;
- switch(k) {
+ switch (k) {
case MODE_6767:
key = 0x67;
break;
diff --git a/src/superio/fintek/f81216h/superio.c b/src/superio/fintek/f81216h/superio.c
index 2791876..e55ec57 100644
--- a/src/superio/fintek/f81216h/superio.c
+++ b/src/superio/fintek/f81216h/superio.c
@@ -40,7 +40,7 @@
*
* See page 17 of data sheet.
*/
- switch(conf->conf_key_mode) {
+ switch (conf->conf_key_mode) {
case MODE_6767:
case MODE_7777:
case MODE_8787:
@@ -74,7 +74,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case F81216H_SP1:
case F81216H_SP2:
case F81216H_SP3:
diff --git a/src/superio/ite/it8728f/superio.c b/src/superio/ite/it8728f/superio.c
index f806d35..57b461c 100644
--- a/src/superio/ite/it8728f/superio.c
+++ b/src/superio/ite/it8728f/superio.c
@@ -33,7 +33,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for FDC etc. */
case IT8728F_EC:
res = find_resource(dev, PNP_IDX_IO0);
diff --git a/src/superio/nsc/pc87360/superio.c b/src/superio/nsc/pc87360/superio.c
index 5b590ea..a9eba4b 100644
--- a/src/superio/nsc/pc87360/superio.c
+++ b/src/superio/nsc/pc87360/superio.c
@@ -28,7 +28,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case PC87360_KBCK:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/nsc/pc87366/superio.c b/src/superio/nsc/pc87366/superio.c
index feaed3b9..dbb763d 100644
--- a/src/superio/nsc/pc87366/superio.c
+++ b/src/superio/nsc/pc87366/superio.c
@@ -28,7 +28,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case PC87366_KBCK:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/nsc/pc87382/superio.c b/src/superio/nsc/pc87382/superio.c
index a5d9a8b..688f08c 100644
--- a/src/superio/nsc/pc87382/superio.c
+++ b/src/superio/nsc/pc87382/superio.c
@@ -26,7 +26,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case PC87382_DOCK:
break;
diff --git a/src/superio/nsc/pc87417/superio.c b/src/superio/nsc/pc87417/superio.c
index c8616f6..bf33d69 100644
--- a/src/superio/nsc/pc87417/superio.c
+++ b/src/superio/nsc/pc87417/superio.c
@@ -29,7 +29,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case PC87417_KBCK:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/nsc/pc97317/superio.c b/src/superio/nsc/pc97317/superio.c
index 3e664d1..9b2cbac 100644
--- a/src/superio/nsc/pc97317/superio.c
+++ b/src/superio/nsc/pc97317/superio.c
@@ -26,7 +26,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case PC97317_KBCK:
pnp_set_logical_device(dev);
pnp_set_enable(dev, 0); /* Disable keyboard */
diff --git a/src/superio/nuvoton/nct5104d/superio.c b/src/superio/nuvoton/nct5104d/superio.c
index 47687e1..bc9af3b 100644
--- a/src/superio/nuvoton/nct5104d/superio.c
+++ b/src/superio/nuvoton/nct5104d/superio.c
@@ -30,7 +30,7 @@
reg26 |= CR26_LOCK_REG;
pnp_write_config(dev, GLOBAL_OPTION_CR26, reg26);
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
//SP1 (UARTA) IRQ type selection (1:level,0:edge) is controlled by CR 10, bit 5
case NCT5104D_SP1:
reg10 = pnp_read_config(dev, IRQ_TYPE_SEL_CR10);
@@ -116,7 +116,7 @@
pnp_enter_conf_mode(dev);
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case NCT5104D_SP1:
case NCT5104D_SP2:
set_irq_trigger_type(dev, conf->irq_trigger_type != 0);
diff --git a/src/superio/nuvoton/nct5572d/superio.c b/src/superio/nuvoton/nct5572d/superio.c
index 10542d5..c6d46bf 100644
--- a/src/superio/nuvoton/nct5572d/superio.c
+++ b/src/superio/nuvoton/nct5572d/superio.c
@@ -44,7 +44,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case NCT5572D_KBC:
/* Enable mouse controller */
diff --git a/src/superio/nuvoton/nct6779d/superio.c b/src/superio/nuvoton/nct6779d/superio.c
index 465ef66..e5824967d 100644
--- a/src/superio/nuvoton/nct6779d/superio.c
+++ b/src/superio/nuvoton/nct6779d/superio.c
@@ -32,7 +32,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case NCT6779D_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
diff --git a/src/superio/nuvoton/wpcm450/superio.c b/src/superio/nuvoton/wpcm450/superio.c
index 3a0cc5d..fa7a8a0 100644
--- a/src/superio/nuvoton/wpcm450/superio.c
+++ b/src/superio/nuvoton/wpcm450/superio.c
@@ -28,7 +28,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case WPCM450_KBCK:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/smsc/dme1737/superio.c b/src/superio/smsc/dme1737/superio.c
index 455fd5e..a6f9a12 100644
--- a/src/superio/smsc/dme1737/superio.c
+++ b/src/superio/smsc/dme1737/superio.c
@@ -32,7 +32,7 @@
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 3f8bc2b..2db4fac 100644
--- a/src/superio/smsc/lpc47b272/superio.c
+++ b/src/superio/smsc/lpc47b272/superio.c
@@ -43,7 +43,7 @@
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 ab2271a..9e943ea 100644
--- a/src/superio/smsc/lpc47b397/superio.c
+++ b/src/superio/smsc/lpc47b397/superio.c
@@ -43,7 +43,7 @@
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 @@
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 e71b78f..28aa52c 100644
--- a/src/superio/smsc/lpc47m10x/superio.c
+++ b/src/superio/smsc/lpc47m10x/superio.c
@@ -41,7 +41,7 @@
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 23c1311..9cc6470 100644
--- a/src/superio/smsc/lpc47m15x/superio.c
+++ b/src/superio/smsc/lpc47m15x/superio.c
@@ -63,7 +63,7 @@
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 454d77f..f9ff04e 100644
--- a/src/superio/smsc/lpc47n217/early_serial.c
+++ b/src/superio/smsc/lpc47n217/early_serial.c
@@ -43,7 +43,7 @@
/* 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 @@
{
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 e63645e..0a14e4c 100644
--- a/src/superio/smsc/lpc47n217/superio.c
+++ b/src/superio/smsc/lpc47n217/superio.c
@@ -163,7 +163,7 @@
{
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 @@
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 @@
{
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 5b9f0da..3e6b0bf 100644
--- a/src/superio/smsc/mec1308/superio.c
+++ b/src/superio/smsc/mec1308/superio.c
@@ -31,7 +31,7 @@
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 3f2a1dd..5158b12 100644
--- a/src/superio/smsc/sch4037/superio.c
+++ b/src/superio/smsc/sch4037/superio.c
@@ -30,7 +30,7 @@
return;
}
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case SCH4037_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/winbond/w83627dhg/superio.c b/src/superio/winbond/w83627dhg/superio.c
index 23b73a2..363bcc4 100644
--- a/src/superio/winbond/w83627dhg/superio.c
+++ b/src/superio/winbond/w83627dhg/superio.c
@@ -38,7 +38,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case W83627DHG_SP2:
w83627dhg_enable_UR2(dev);
break;
diff --git a/src/superio/winbond/w83627ehg/superio.c b/src/superio/winbond/w83627ehg/superio.c
index db1f98e..04dda6e 100644
--- a/src/superio/winbond/w83627ehg/superio.c
+++ b/src/superio/winbond/w83627ehg/superio.c
@@ -83,7 +83,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case W83627EHG_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/winbond/w83627hf/superio.c b/src/superio/winbond/w83627hf/superio.c
index 21c3016..e9cc13b 100644
--- a/src/superio/winbond/w83627hf/superio.c
+++ b/src/superio/winbond/w83627hf/superio.c
@@ -90,7 +90,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case W83627HF_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
@@ -110,7 +110,7 @@
pnp_enable_resources(dev);
pnp_enter_conf_mode(dev);
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case W83627HF_HWM:
printk(BIOS_DEBUG, "W83627HF HWM SMBus enabled\n");
enable_hwm_smbus(dev);
diff --git a/src/superio/winbond/w83627thg/superio.c b/src/superio/winbond/w83627thg/superio.c
index 03afe11..d741a70 100644
--- a/src/superio/winbond/w83627thg/superio.c
+++ b/src/superio/winbond/w83627thg/superio.c
@@ -30,7 +30,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case W83627THG_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;
diff --git a/src/superio/winbond/w83627uhg/superio.c b/src/superio/winbond/w83627uhg/superio.c
index d86560f..4c7a7ad 100644
--- a/src/superio/winbond/w83627uhg/superio.c
+++ b/src/superio/winbond/w83627uhg/superio.c
@@ -58,7 +58,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case W83627UHG_SP1:
set_uart_clock_source(dev, 0);
break;
diff --git a/src/superio/winbond/w83667hg-a/superio.c b/src/superio/winbond/w83667hg-a/superio.c
index ceb783d..09859cf 100644
--- a/src/superio/winbond/w83667hg-a/superio.c
+++ b/src/superio/winbond/w83667hg-a/superio.c
@@ -44,7 +44,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case W83667HG_A_KBC:
/* Enable mouse controller */
diff --git a/src/superio/winbond/w83977tf/superio.c b/src/superio/winbond/w83977tf/superio.c
index 9b78b84..40df5b3 100644
--- a/src/superio/winbond/w83977tf/superio.c
+++ b/src/superio/winbond/w83977tf/superio.c
@@ -31,7 +31,7 @@
if (!dev->enabled)
return;
- switch(dev->path.pnp.device) {
+ switch (dev->path.pnp.device) {
case W83977TF_KBC:
pc_keyboard_init(NO_AUX_DEVICE);
break;