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>
This commit is contained in:
committed by
Patrick Georgi
parent
16f9bf83e0
commit
0ce41f1a11
@@ -29,7 +29,7 @@ static void f71863fg_init(struct device *dev)
|
||||
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);
|
||||
|
@@ -30,7 +30,7 @@ static void f71869ad_init(struct device *dev)
|
||||
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);
|
||||
|
@@ -28,7 +28,7 @@ static void f71872_init(struct device *dev)
|
||||
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);
|
||||
|
@@ -38,7 +38,7 @@ static void pnp_exit_conf_state(pnp_devfn_t dev)
|
||||
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;
|
||||
|
@@ -40,7 +40,7 @@ static void pnp_enter_ext_func_mode(struct device *dev)
|
||||
*
|
||||
* 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 @@ static void f81216h_init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case F81216H_SP1:
|
||||
case F81216H_SP2:
|
||||
case F81216H_SP3:
|
||||
|
@@ -33,7 +33,7 @@ static void it8728f_init(struct device *dev)
|
||||
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);
|
||||
|
@@ -28,7 +28,7 @@ static void init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case PC87360_KBCK:
|
||||
pc_keyboard_init(NO_AUX_DEVICE);
|
||||
break;
|
||||
|
@@ -28,7 +28,7 @@ static void init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case PC87366_KBCK:
|
||||
pc_keyboard_init(NO_AUX_DEVICE);
|
||||
break;
|
||||
|
@@ -26,7 +26,7 @@ static void init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case PC87382_DOCK:
|
||||
break;
|
||||
|
||||
|
@@ -29,7 +29,7 @@ static void init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case PC87417_KBCK:
|
||||
pc_keyboard_init(NO_AUX_DEVICE);
|
||||
break;
|
||||
|
@@ -26,7 +26,7 @@ static void init(struct device *dev)
|
||||
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 */
|
||||
|
@@ -30,7 +30,7 @@ static void set_irq_trigger_type(struct device *dev, bool trig_level)
|
||||
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 @@ static void nct5104d_init(struct device *dev)
|
||||
|
||||
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);
|
||||
|
@@ -44,7 +44,7 @@ static void nct5572d_init(struct device *dev)
|
||||
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 */
|
||||
|
@@ -32,7 +32,7 @@ static void nct6779d_init(struct device *dev)
|
||||
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);
|
||||
|
@@ -28,7 +28,7 @@ static void init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case WPCM450_KBCK:
|
||||
pc_keyboard_init(NO_AUX_DEVICE);
|
||||
break;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -38,7 +38,7 @@ static void w83627dhg_init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case W83627DHG_SP2:
|
||||
w83627dhg_enable_UR2(dev);
|
||||
break;
|
||||
|
@@ -83,7 +83,7 @@ static void w83627ehg_init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case W83627EHG_KBC:
|
||||
pc_keyboard_init(NO_AUX_DEVICE);
|
||||
break;
|
||||
|
@@ -90,7 +90,7 @@ static void w83627hf_init(struct device *dev)
|
||||
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 @@ static void w83627hf_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 W83627HF_HWM:
|
||||
printk(BIOS_DEBUG, "W83627HF HWM SMBus enabled\n");
|
||||
enable_hwm_smbus(dev);
|
||||
|
@@ -30,7 +30,7 @@ static void w83627thg_init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case W83627THG_KBC:
|
||||
pc_keyboard_init(NO_AUX_DEVICE);
|
||||
break;
|
||||
|
@@ -58,7 +58,7 @@ static void w83627uhg_init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case W83627UHG_SP1:
|
||||
set_uart_clock_source(dev, 0);
|
||||
break;
|
||||
|
@@ -44,7 +44,7 @@ static void w83667hg_a_init(struct device *dev)
|
||||
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 */
|
||||
|
@@ -31,7 +31,7 @@ static void w83977tf_init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
switch(dev->path.pnp.device) {
|
||||
switch (dev->path.pnp.device) {
|
||||
case W83977TF_KBC:
|
||||
pc_keyboard_init(NO_AUX_DEVICE);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user