diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-11-18 15:21:03 +0100 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2023-01-30 22:11:50 +0000 |
commit | 486240fc7d2f1f8fc5bac2614d5f4139ab8d4ea3 (patch) | |
tree | 23e4c847aa743f03125518e6cf103c072fe3cb28 /src/mainboard/acer/aspire_vn7_572g | |
parent | f58abca47a48c3f3e6cee2599b1fcb7619865169 (diff) |
src/mainboard: Remove unnecessary space after casts
Change-Id: Id8e1a52279e6a606441eefe30e24bcd44e006aad
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69815
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Jonathon Hall <jonathon.hall@puri.sm>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
Diffstat (limited to 'src/mainboard/acer/aspire_vn7_572g')
-rw-r--r-- | src/mainboard/acer/aspire_vn7_572g/ec.c | 8 | ||||
-rw-r--r-- | src/mainboard/acer/aspire_vn7_572g/mainboard.c | 2 | ||||
-rw-r--r-- | src/mainboard/acer/aspire_vn7_572g/romstage.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/mainboard/acer/aspire_vn7_572g/ec.c b/src/mainboard/acer/aspire_vn7_572g/ec.c index 570e2829f3..72f2768638 100644 --- a/src/mainboard/acer/aspire_vn7_572g/ec.c +++ b/src/mainboard/acer/aspire_vn7_572g/ec.c @@ -53,15 +53,15 @@ uint8_t ec_cmd_94_query(void) uint8_t ec_idx_read(uint16_t addr) { - outb((uint8_t) (addr >> 8), EC_INDEX_IO_HIGH_ADDR_PORT); - outb((uint8_t) addr, EC_INDEX_IO_LOW_ADDR_PORT); + outb((uint8_t)(addr >> 8), EC_INDEX_IO_HIGH_ADDR_PORT); + outb((uint8_t)addr, EC_INDEX_IO_LOW_ADDR_PORT); return inb(EC_INDEX_IO_DATA_PORT); } void ec_idx_write(uint16_t addr, uint8_t data) { - outb((uint8_t) (addr >> 8), EC_INDEX_IO_HIGH_ADDR_PORT); - outb((uint8_t) addr, EC_INDEX_IO_LOW_ADDR_PORT); + outb((uint8_t)(addr >> 8), EC_INDEX_IO_HIGH_ADDR_PORT); + outb((uint8_t)addr, EC_INDEX_IO_LOW_ADDR_PORT); outb(data, EC_INDEX_IO_DATA_PORT); } diff --git a/src/mainboard/acer/aspire_vn7_572g/mainboard.c b/src/mainboard/acer/aspire_vn7_572g/mainboard.c index eba9e9856e..2f222dc12f 100644 --- a/src/mainboard/acer/aspire_vn7_572g/mainboard.c +++ b/src/mainboard/acer/aspire_vn7_572g/mainboard.c @@ -81,7 +81,7 @@ static void ec_send_time(void) send_ec_command(0xE0); for (int i = 0; i < 4; i++) { /* Shift bytes */ - ec_time_byte = (uint8_t) (ec_time >> (i * 8)); + ec_time_byte = (uint8_t)(ec_time >> (i * 8)); printk(BIOS_DEBUG, "EC: Sending 0x%x (iteration %d)\n", ec_time_byte, i); send_ec_data(ec_time_byte); } diff --git a/src/mainboard/acer/aspire_vn7_572g/romstage.c b/src/mainboard/acer/aspire_vn7_572g/romstage.c index 74e1438118..1b5e25037b 100644 --- a/src/mainboard/acer/aspire_vn7_572g/romstage.c +++ b/src/mainboard/acer/aspire_vn7_572g/romstage.c @@ -30,8 +30,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd) mem_cfg->CaVrefConfig = 2; mem_cfg->DqPinsInterleaved = 1; mem_cfg->MemorySpdDataLen = blk.len; - mem_cfg->MemorySpdPtr00 = (uintptr_t) blk.spd_array[0]; - mem_cfg->MemorySpdPtr10 = (uintptr_t) blk.spd_array[1]; + mem_cfg->MemorySpdPtr00 = (uintptr_t)blk.spd_array[0]; + mem_cfg->MemorySpdPtr10 = (uintptr_t)blk.spd_array[1]; mem_cfg->PchSataHsioRxGen3EqBoostMagEnable[1] = 1; mem_cfg->PchSataHsioRxGen3EqBoostMag[1] = 1; |