soc/amd/common: Fix some white spaces issues
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Change-Id: I54438978db13ba00188e53239f7034d1b258e912
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65900
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/src/soc/amd/common/block/acpi/ivrs.c b/src/soc/amd/common/block/acpi/ivrs.c
index b78cc53..f0bcef6 100644
--- a/src/soc/amd/common/block/acpi/ivrs.c
+++ b/src/soc/amd/common/block/acpi/ivrs.c
@@ -62,7 +62,7 @@
static unsigned long ivhd_describe_f0_device(unsigned long current,
uint16_t dev_id, uint8_t datasetting)
{
- ivrs_ivhd_f0_entry_t *ivhd_f0 = (ivrs_ivhd_f0_entry_t *) current;
+ ivrs_ivhd_f0_entry_t *ivhd_f0 = (ivrs_ivhd_f0_entry_t *)current;
ivhd_f0->type = IVHD_DEV_VARIABLE;
ivhd_f0->dev_id = dev_id;
@@ -287,7 +287,7 @@
ivhd_11->iommu_base_high = ivrs->ivhd.iommu_base_high;
ivhd_11->pci_segment_group = 0x0000;
ivhd_11->iommu_info = ivrs->ivhd.iommu_info;
- ivhd11_attr_ptr = (ivhd11_iommu_attr_t *) &ivrs->ivhd.iommu_feature_info;
+ ivhd11_attr_ptr = (ivhd11_iommu_attr_t *)&ivrs->ivhd.iommu_feature_info;
ivhd_11->iommu_attributes.perf_counters = ivhd11_attr_ptr->perf_counters;
ivhd_11->iommu_attributes.perf_counter_banks = ivhd11_attr_ptr->perf_counter_banks;
ivhd_11->iommu_attributes.msi_num_ppr = ivhd11_attr_ptr->msi_num_ppr;
diff --git a/src/soc/amd/common/block/acpimmio/biosram.c b/src/soc/amd/common/block/acpimmio/biosram.c
index 06bbed9..76f24e0 100644
--- a/src/soc/amd/common/block/acpimmio/biosram.c
+++ b/src/soc/amd/common/block/acpimmio/biosram.c
@@ -75,8 +75,8 @@
void save_uma_base(uint64_t base)
{
- biosram_write32(BIOSRAM_UMA_BASE, (uint32_t) base);
- biosram_write32(BIOSRAM_UMA_BASE + 4, (uint32_t) (base >> 32));
+ biosram_write32(BIOSRAM_UMA_BASE, (uint32_t)base);
+ biosram_write32(BIOSRAM_UMA_BASE + 4, (uint32_t)(base >> 32));
}
uint32_t get_uma_size(void)
diff --git a/src/soc/amd/common/block/cpu/noncar/early_cache.c b/src/soc/amd/common/block/cpu/noncar/early_cache.c
index 94c8b10..d8684ee 100644
--- a/src/soc/amd/common/block/cpu/noncar/early_cache.c
+++ b/src/soc/amd/common/block/cpu/noncar/early_cache.c
@@ -60,7 +60,7 @@
wrmsr(SYSCFG_MSR, sys_cfg);
- var_mtrr_set(&mtrr_ctx.ctx, 0, ALIGN_DOWN(top_mem.lo, 8*MiB), MTRR_TYPE_WRBACK);
+ var_mtrr_set(&mtrr_ctx.ctx, 0, ALIGN_DOWN(top_mem.lo, 8 * MiB), MTRR_TYPE_WRBACK);
/* TODO: check if we should always mark 16 MByte below 4 GByte as WRPROT */
var_mtrr_set(&mtrr_ctx.ctx, FLASH_BASE_ADDR, CONFIG_ROM_SIZE, MTRR_TYPE_WRPROT);
diff --git a/src/soc/amd/common/block/pci/amd_pci_util.c b/src/soc/amd/common/block/pci/amd_pci_util.c
index 6c5565f..d665a81 100644
--- a/src/soc/amd/common/block/pci/amd_pci_util.c
+++ b/src/soc/amd/common/block/pci/amd_pci_util.c
@@ -67,11 +67,11 @@
*/
for (i = 0 ; i < limit; i++) {
byte = idx_name[i].index;
- write_pci_int_idx(byte, 0, (u8) picr_data_ptr[byte]);
+ write_pci_int_idx(byte, 0, (u8)picr_data_ptr[byte]);
printk(BIOS_DEBUG, "0x%02X\t\t%-20s 0x%02X\t",
byte, idx_name[i].name,
read_pci_int_idx(byte, 0));
- write_pci_int_idx(byte, 1, (u8) intr_data_ptr[byte]);
+ write_pci_int_idx(byte, 1, (u8)intr_data_ptr[byte]);
printk(BIOS_DEBUG, "0x%02X\n", read_pci_int_idx(byte, 1));
}
}
diff --git a/src/soc/amd/common/fsp/fsp_validate.c b/src/soc/amd/common/fsp/fsp_validate.c
index 0ce59b3..e0867f4 100644
--- a/src/soc/amd/common/fsp/fsp_validate.c
+++ b/src/soc/amd/common/fsp/fsp_validate.c
@@ -16,7 +16,7 @@
{
struct amd_image_revision *rev;
- rev = (struct amd_image_revision *) &(hdr->image_revision);
+ rev = (struct amd_image_revision *)&(hdr->image_revision);
/* Check if the image fits into the reserved memory region */
if (hdr->image_size > CONFIG_FSP_M_SIZE)
diff --git a/src/soc/amd/common/pi/amd_late_init.c b/src/soc/amd/common/pi/amd_late_init.c
index ea16576..f797e41 100644
--- a/src/soc/amd/common/pi/amd_late_init.c
+++ b/src/soc/amd/common/pi/amd_late_init.c
@@ -81,8 +81,8 @@
dimm->serial[1],
dimm->serial[2],
dimm->serial[3],
- strlen((char *) dimm->module_part_number),
- (char *) dimm->module_part_number
+ strlen((char *)dimm->module_part_number),
+ (char *)dimm->module_part_number
);
}
@@ -120,9 +120,9 @@
dmi17->FormFactor,
dmi17->DeviceLocator,
dmi17->BankLocator,
- strlen((char *) dmi17->SerialNumber),
+ strlen((char *)dmi17->SerialNumber),
dmi17->SerialNumber,
- strlen((char *) dmi17->PartNumber),
+ strlen((char *)dmi17->PartNumber),
dmi17->PartNumber
);
}
diff --git a/src/soc/amd/common/pi/heapmanager.c b/src/soc/amd/common/pi/heapmanager.c
index ab923b9..154f04d 100644
--- a/src/soc/amd/common/pi/heapmanager.c
+++ b/src/soc/amd/common/pi/heapmanager.c
@@ -259,7 +259,7 @@
BestFitNodePtr = (BIOS_BUFFER_NODE *)(BiosHeapBaseAddr
+ BestFitNodeOffset);
- BestFitPrevNodePtr = (BIOS_BUFFER_NODE *) (BiosHeapBaseAddr +
+ BestFitPrevNodePtr = (BIOS_BUFFER_NODE *)(BiosHeapBaseAddr +
BestFitPrevNodeOffset);
/*
@@ -268,7 +268,7 @@
*/
if (BestFitNodePtr->BufferSize > MinimumSize) {
NextFreeOffset = BestFitNodeOffset + MinimumSize;
- NextFreePtr = (BIOS_BUFFER_NODE *) (BiosHeapBaseAddr +
+ NextFreePtr = (BIOS_BUFFER_NODE *)(BiosHeapBaseAddr +
NextFreeOffset);
NextFreePtr->BufferSize = BestFitNodeSize - MinimumSize;
diff --git a/src/soc/amd/common/pi/image.c b/src/soc/amd/common/pi/image.c
index 03a2a47..79dd736 100644
--- a/src/soc/amd/common/pi/image.c
+++ b/src/soc/amd/common/pi/image.c
@@ -35,7 +35,7 @@
while ((current_ptr >= start) && (current_ptr < end)) {
if (IMAGE_SIGNATURE == *((uint32_t *)current_ptr)) {
- image_ptr = (AMD_IMAGE_HEADER *) current_ptr;
+ image_ptr = (AMD_IMAGE_HEADER *)current_ptr;
/* Check if the image has the desired module */
if (validate_image((void *)image_ptr->ModuleInfoOffset,
diff --git a/src/soc/amd/common/psp_verstage/vboot_crypto.c b/src/soc/amd/common/psp_verstage/vboot_crypto.c
index d872678..89a4cce 100644
--- a/src/soc/amd/common/psp_verstage/vboot_crypto.c
+++ b/src/soc/amd/common/psp_verstage/vboot_crypto.c
@@ -47,7 +47,7 @@
vb2_error_t vb2ex_hwcrypto_digest_extend(const uint8_t *buf, uint32_t size)
{
uint32_t retval;
- sha_op.Data = (uint8_t *) buf;
+ sha_op.Data = (uint8_t *)buf;
if (!sha_op_size_remaining) {
printk(BIOS_ERR, "got more data than expected.\n");