sb/intel/lynxpoint: Drop space after casts

Casts can be considered unary operators, so drop the space.

Tested with BUILD_TIMELESS=1, Asrock B85M Pro4 remains identical.

Change-Id: Ib180c28ff1d7520c82d2b5a5ec79d288ac8b0cf3
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46528
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by:  Felix Singer <felixsinger@posteo.net>
This commit is contained in:
Angel Pons 2020-10-17 18:28:29 +02:00
parent 5d92aa5882
commit 8cb8374e3c
4 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@ void acpi_create_intel_hpet(acpi_hpet_t * hpet)
acpi_header_t *header = &(hpet->header);
acpi_addr_t *addr = &(hpet->addr);
memset((void *) hpet, 0, sizeof(acpi_hpet_t));
memset((void *)hpet, 0, sizeof(acpi_hpet_t));
/* fill out header fields */
memcpy(header->signature, "HPET", 4);
@ -37,7 +37,7 @@ void acpi_create_intel_hpet(acpi_hpet_t * hpet)
hpet->min_tick = 0x0080;
header->checksum =
acpi_checksum((void *) hpet, sizeof(acpi_hpet_t));
acpi_checksum((void *)hpet, sizeof(acpi_hpet_t));
}
static void acpi_create_serialio_ssdt_entry(int id, struct global_nvs *gnvs)
@ -66,7 +66,7 @@ void acpi_create_serialio_ssdt(acpi_header_t *ssdt)
memcpy(&ssdt->asl_compiler_id, ASLC, 4);
ssdt->asl_compiler_revision = asl_revision;
ssdt->length = sizeof(acpi_header_t);
acpigen_set_current((char *) current);
acpigen_set_current((char *)current);
/* Fill the SSDT with an entry for each SerialIO device */
for (id = 0; id < 8; id++)

View File

@ -108,7 +108,7 @@ int early_pch_init(void)
RCBA16(OIC) = 0x0100;
/* PCH BWG says to read back the IOAPIC enable register */
(void) RCBA16(OIC);
(void)RCBA16(OIC);
/* Mainboard RCBA settings */
mainboard_config_rcba();

View File

@ -715,7 +715,7 @@ void southbridge_inject_dsdt(const struct device *dev)
/* Add it to DSDT. */
acpigen_write_scope("\\");
acpigen_write_name_dword("NVSA", (u32) gnvs);
acpigen_write_name_dword("NVSA", (u32)gnvs);
acpigen_pop_len();
}
}
@ -748,7 +748,7 @@ static unsigned long southbridge_write_acpi_tables(const struct device *device,
*/
printk(BIOS_DEBUG, "ACPI: * HPET\n");
hpet = (acpi_hpet_t *) current;
hpet = (acpi_hpet_t *)current;
current += sizeof(acpi_hpet_t);
current = acpi_align_current(current);
acpi_create_intel_hpet(hpet);

View File

@ -149,8 +149,8 @@ static void sata_init(struct device *dev)
write32(abar + 0x00, reg32);
/* PI (Ports implemented) */
write32(abar + 0x03, config->sata_port_map);
(void) read32(abar + 0x03); /* Read back 1 */
(void) read32(abar + 0x03); /* Read back 2 */
(void)read32(abar + 0x03); /* Read back 1 */
(void)read32(abar + 0x03); /* Read back 2 */
/* CAP2 (HBA Capabilities Extended)*/
reg32 = read32(abar + 0x09);
/* Enable DEVSLP */