summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);