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
@@ -91,7 +91,7 @@ static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINTN Data, VOID *ConfigP
|
||||
TempData8 |= Data8;
|
||||
Write64Mem8(GpioMmioAddr+SB_GPIO_REG179, TempData8);
|
||||
|
||||
switch(MemData->ParameterListPtr->DDR3Voltage){
|
||||
switch (MemData->ParameterListPtr->DDR3Voltage) {
|
||||
case VOLT1_35:
|
||||
Data8 = Read64Mem8 (GpioMmioAddr+SB_GPIO_REG178);
|
||||
Data8 &= ~(UINT8)BIT6;
|
||||
|
@@ -150,7 +150,7 @@ unsigned long mainboard_write_acpi_tables(struct device *device,
|
||||
current = ALIGN(current, 8);
|
||||
printk(BIOS_DEBUG, "ACPI: * SSDT for PCI%c at %lx\n", c, current); /* pci0 and pci1 are in dsdt */
|
||||
ssdtx = (acpi_header_t *)current;
|
||||
switch(sysconf.hcid[i]) {
|
||||
switch (sysconf.hcid[i]) {
|
||||
case 1:
|
||||
file_name = CONFIG_CBFS_PREFIX "/ssdt2.aml";
|
||||
break;
|
||||
|
@@ -151,7 +151,7 @@ void get_bus_conf(void)
|
||||
/* check hcid type here */
|
||||
sysconf.hcid[i] = get_hcid(i);
|
||||
|
||||
switch(sysconf.hcid[i]) {
|
||||
switch (sysconf.hcid[i]) {
|
||||
|
||||
case 1: /* 8132 */
|
||||
case 3: /* 8131 */
|
||||
|
@@ -70,7 +70,7 @@ static void *smp_write_config_table(void *v)
|
||||
if (!(sysconf.pci1234[i] & 0x1))
|
||||
continue;
|
||||
|
||||
switch(sysconf.hcid[i]) {
|
||||
switch (sysconf.hcid[i]) {
|
||||
case 1:
|
||||
case 3:
|
||||
dev = dev_find_slot(m->bus_8132a[j][0], PCI_DEVFN(m->sbdn3a[j], 1));
|
||||
@@ -137,7 +137,7 @@ static void *smp_write_config_table(void *v)
|
||||
int jj;
|
||||
struct device *dev;
|
||||
struct resource *res;
|
||||
switch(sysconf.hcid[i]) {
|
||||
switch (sysconf.hcid[i]) {
|
||||
case 1:
|
||||
case 3:
|
||||
dev = dev_find_slot(m->bus_8132a[j][0], PCI_DEVFN(m->sbdn3a[j], 1));
|
||||
|
@@ -63,7 +63,7 @@ static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINTN Data, VOID *ConfigP
|
||||
AcpiMmioAddr = (UINT32)Data16 << 16;
|
||||
GpioMmioAddr = AcpiMmioAddr + GPIO_BASE;
|
||||
|
||||
switch(MemData->ParameterListPtr->DDR3Voltage){
|
||||
switch (MemData->ParameterListPtr->DDR3Voltage) {
|
||||
case VOLT1_35:
|
||||
Data8 = Read64Mem8 (GpioMmioAddr+SB_GPIO_REG178);
|
||||
Data8 &= ~(UINT8)BIT6;
|
||||
|
@@ -49,7 +49,7 @@ int mainboard_io_trap_handler(int smif)
|
||||
|
||||
int mainboard_smi_apmc(u8 data)
|
||||
{
|
||||
switch(data) {
|
||||
switch (data) {
|
||||
case APM_CNT_ACPI_ENABLE:
|
||||
/* route H8SCI to SCI */
|
||||
gpi_route_interrupt(GPE_EC_SCI, GPI_IS_SCI);
|
||||
|
@@ -161,7 +161,7 @@ static int run(int index)
|
||||
return index;
|
||||
/* state machine! */
|
||||
for(i = index, id = &iodefs[i]; id->op; i++, id++){
|
||||
switch(id->op){
|
||||
switch (id->op) {
|
||||
case M:
|
||||
if (verbose & vmsg) printk(BIOS_SPEW, "%ld: %s\n",
|
||||
globalmicroseconds(), id->msg);
|
||||
@@ -193,7 +193,7 @@ static int run(int index)
|
||||
if (id->addr == PCH_PP_CONTROL){
|
||||
if (verbose & vio)
|
||||
printk(BIOS_SPEW, "PCH_PP_CONTROL\n");
|
||||
switch(id->data & 0xf){
|
||||
switch (id->data & 0xf) {
|
||||
case 8: break;
|
||||
case 7: break;
|
||||
default: udelay(100000);
|
||||
|
@@ -58,7 +58,7 @@ static int int15_handler(void)
|
||||
printk(BIOS_DEBUG, "%s: INT15 function %04x!\n",
|
||||
__func__, X86_AX);
|
||||
|
||||
switch(X86_AX) {
|
||||
switch (X86_AX) {
|
||||
case 0x5f34:
|
||||
/*
|
||||
* Set Panel Fitting Hook:
|
||||
|
@@ -39,7 +39,7 @@ static int int15_handler(void)
|
||||
printk(BIOS_DEBUG, "%s: AX=%04x BX=%04x CX=%04x DX=%04x\n",
|
||||
__func__, X86_AX, X86_BX, X86_CX, X86_DX);
|
||||
|
||||
switch(X86_EAX & 0xffff) {
|
||||
switch (X86_EAX & 0xffff) {
|
||||
case 0x5f34:
|
||||
/*
|
||||
* Set Panel Fitting Hook:
|
||||
|
@@ -119,7 +119,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
|
||||
switch(event) {
|
||||
switch (event) {
|
||||
/* brightness up */
|
||||
case 0x14:
|
||||
mainboard_smi_brightness_up();
|
||||
@@ -153,7 +153,7 @@ void mainboard_smi_gpi(u32 gpi)
|
||||
|
||||
int mainboard_smi_apmc(u8 data)
|
||||
{
|
||||
switch(data) {
|
||||
switch (data) {
|
||||
case APM_CNT_ACPI_ENABLE:
|
||||
/* use 0x1600/0x1604 to prevent races with userspace */
|
||||
ec_set_ports(0x1604, 0x1600);
|
||||
|
@@ -121,7 +121,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
|
||||
switch(event) {
|
||||
switch (event) {
|
||||
/* brightness up */
|
||||
case 0x14:
|
||||
mainboard_smi_brightness_up();
|
||||
@@ -158,7 +158,7 @@ void mainboard_smi_gpi(u32 gpi)
|
||||
|
||||
int mainboard_smi_apmc(u8 data)
|
||||
{
|
||||
switch(data) {
|
||||
switch (data) {
|
||||
case APM_CNT_ACPI_ENABLE:
|
||||
/* use 0x1600/0x1604 to prevent races with userspace */
|
||||
ec_set_ports(0x1604, 0x1600);
|
||||
|
@@ -121,7 +121,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
|
||||
switch(event) {
|
||||
switch (event) {
|
||||
/* brightness up */
|
||||
case 0x14:
|
||||
mainboard_smi_brightness_up();
|
||||
@@ -155,7 +155,7 @@ void mainboard_smi_gpi(u32 gpi)
|
||||
|
||||
int mainboard_smi_apmc(u8 data)
|
||||
{
|
||||
switch(data) {
|
||||
switch (data) {
|
||||
case APM_CNT_ACPI_ENABLE:
|
||||
/* use 0x1600/0x1604 to prevent races with userspace */
|
||||
ec_set_ports(0x1604, 0x1600);
|
||||
|
Reference in New Issue
Block a user