aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-11-18 15:10:03 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-11-22 13:43:41 +0000
commita51d9b00f07a84550d25cd434497aa725d2f0820 (patch)
tree92c55816e4f5eefafdfe2dddf8bc751ead7b0a5f
parent41865cc5b40a4fbbc96b998b5a70e9cf18d872ee (diff)
src/soc/cavium: Remove unnecessary space after casts
Change-Id: Ieb094096e9e204e59a1f3fcf716d906e7736fb43 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69811 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/cavium/cn81xx/twsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/cavium/cn81xx/twsi.c b/src/soc/cavium/cn81xx/twsi.c
index b1c1e66fae..f06989b8af 100644
--- a/src/soc/cavium/cn81xx/twsi.c
+++ b/src/soc/cavium/cn81xx/twsi.c
@@ -497,7 +497,7 @@ static int twsi_write_data(void *baseaddr, const u8 slave_addr,
twsi_sw.u = 0;
twsi_sw.s.op = TWSI_SW_EOP_IA;
twsi_sw.s.eop_ia = TWSI_DATA;
- twsi_sw.s.data = (u32) (slave_addr << 1) | TWSI_OP_WRITE;
+ twsi_sw.s.data = (u32)(slave_addr << 1) | TWSI_OP_WRITE;
twsi_write_sw(baseaddr, twsi_sw);
twsi_write_ctl(baseaddr, TWSI_CTL_ENAB);
@@ -574,7 +574,7 @@ static int twsi_read_data(void *baseaddr, const u8 slave_addr,
twsi_sw.s.op = TWSI_SW_EOP_IA;
twsi_sw.s.eop_ia = TWSI_DATA;
- twsi_sw.s.data = (u32) (slave_addr << 1) | TWSI_OP_READ;
+ twsi_sw.s.data = (u32)(slave_addr << 1) | TWSI_OP_READ;
twsi_write_sw(baseaddr, twsi_sw);
twsi_write_ctl(baseaddr, TWSI_CTL_ENAB);