From 57e89090818537d6dd9bd478a3aa6b5ec2ea8704 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Wed, 23 Oct 2019 21:45:23 -0600 Subject: src/soc: change "unsigned" to "unsigned int" Signed-off-by: Martin Roth Change-Id: I9c1228d3f9e7a12fe30c48e3b1f143520fed875c Reviewed-on: https://review.coreboot.org/c/coreboot/+/36332 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/soc/samsung/exynos5420/i2c.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/soc/samsung/exynos5420/i2c.c') diff --git a/src/soc/samsung/exynos5420/i2c.c b/src/soc/samsung/exynos5420/i2c.c index 00ad12f715..4dd9caa16a 100644 --- a/src/soc/samsung/exynos5420/i2c.c +++ b/src/soc/samsung/exynos5420/i2c.c @@ -82,8 +82,8 @@ struct i2c_bus struct hsi2c_regs *hsregs; int is_highspeed; /* High speed type, rather than I2C */ int id; - unsigned clk_cycle; - unsigned clk_div; + unsigned int clk_cycle; + unsigned int clk_div; }; @@ -255,7 +255,7 @@ enum { static int hsi2c_get_clk_details(struct i2c_bus *i2c, int *div, int *cycle, - unsigned op_clk) + unsigned int op_clk) { struct hsi2c_regs *regs = i2c->hsregs; unsigned long clkin = clock_get_periph_rate(i2c->periph_id); @@ -361,7 +361,7 @@ static void i2c_ch_init(struct i2c_bus *i2c, int speed) write32(®s->stat, I2cStatMasterXmit | I2cStatEnable); } -void i2c_init(unsigned bus, int speed, int slaveadd) +void i2c_init(unsigned int bus, int speed, int slaveadd) { struct i2c_bus *i2c = &i2c_busses[bus]; @@ -627,7 +627,7 @@ static int i2c_recv_buf(struct i2c_regs *regs, uint8_t *data, int len) return 0; } -int platform_i2c_transfer(unsigned bus, struct i2c_msg *segments, int count) +int platform_i2c_transfer(unsigned int bus, struct i2c_msg *segments, int count) { struct i2c_bus *i2c = &i2c_busses[bus]; if (i2c->is_highspeed) -- cgit v1.2.3