summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authormario.six@gdsys.cc <mario.six@gdsys.cc>2016-07-21 11:57:06 +0200
committerHeiko Schocher <hs@denx.de>2016-07-26 10:19:42 +0200
commite075828128d961d873484bb02ac8101bc733a1d7 (patch)
tree829aeabdfb459701dcf2f3f2fdff5e72e10e5492 /drivers/i2c
parent059fce9f61fd81ab67555b9ba87e12cc4b8db8f6 (diff)
downloadu-boot-imx-e075828128d961d873484bb02ac8101bc733a1d7.zip
u-boot-imx-e075828128d961d873484bb02ac8101bc733a1d7.tar.gz
u-boot-imx-e075828128d961d873484bb02ac8101bc733a1d7.tar.bz2
i2c: mvtwsi: Use 'uint' instead of 'unsigned int'
Since some additional parameters will be added in the course of this patch series (especially with the addition of DM support), we replace the longer "unsigned int" declarations with "uint" declarations to keep the parameter lists more readable. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/mvtwsi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c
index d0e3c3f..9ddd3ee 100644
--- a/drivers/i2c/mvtwsi.c
+++ b/drivers/i2c/mvtwsi.c
@@ -314,7 +314,7 @@ static int twsi_stop(struct i2c_adapter *adap)
return status;
}
-static unsigned int twsi_calc_freq(const int n, const int m)
+static uint twsi_calc_freq(const int n, const int m)
{
#ifdef CONFIG_SUNXI
return CONFIG_SYS_TCLK / (10 * (m + 1) * (1 << n));
@@ -341,12 +341,12 @@ static void twsi_reset(struct i2c_adapter *adap)
/*
* Sets baud to the highest possible value not exceeding the requested one.
*/
-static unsigned int twsi_i2c_set_bus_speed(struct i2c_adapter *adap,
- unsigned int requested_speed)
+static uint twsi_i2c_set_bus_speed(struct i2c_adapter *adap,
+ uint requested_speed)
{
struct mvtwsi_registers *twsi = twsi_get_base(adap);
- unsigned int tmp_speed, highest_speed, n, m;
- unsigned int baud = 0x44; /* Baud rate after controller reset */
+ uint tmp_speed, highest_speed, n, m;
+ uint baud = 0x44; /* Baud rate after controller reset */
highest_speed = 0;
/* Successively try m, n combinations, and use the combination