summaryrefslogtreecommitdiff
path: root/drivers/i2c/mxc_i2c.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-11-12 14:34:26 +0000
committerTom Rini <trini@ti.com>2012-12-11 13:17:29 -0700
commit7f86bd576f7570b4d19d016f768c869d88b3d0ab (patch)
tree7ca2f29e1392b9a9b34104b3da2d7e8b9337153d /drivers/i2c/mxc_i2c.c
parent2515d8437bf3a4415d3354d01e37f07d922250e2 (diff)
downloadu-boot-imx-7f86bd576f7570b4d19d016f768c869d88b3d0ab.zip
u-boot-imx-7f86bd576f7570b4d19d016f768c869d88b3d0ab.tar.gz
u-boot-imx-7f86bd576f7570b4d19d016f768c869d88b3d0ab.tar.bz2
i2c: Staticize local functions in mxc i2c driver
Some functions in the MXC i2c driver were not static, fix this by making them so. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Heiko Schocher <hs@denx.de> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers/i2c/mxc_i2c.c')
-rw-r--r--drivers/i2c/mxc_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 18270b9..a73b10b 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -115,7 +115,7 @@ static uint8_t i2c_imx_get_clk(unsigned int rate)
/*
* Set I2C Bus speed
*/
-int bus_i2c_set_bus_speed(void *base, int speed)
+static int bus_i2c_set_bus_speed(void *base, int speed)
{
struct mxc_i2c_regs *i2c_regs = (struct mxc_i2c_regs *)base;
u8 clk_idx = i2c_imx_get_clk(speed);
@@ -133,7 +133,7 @@ int bus_i2c_set_bus_speed(void *base, int speed)
/*
* Get I2C Speed
*/
-unsigned int bus_i2c_get_bus_speed(void *base)
+static unsigned int bus_i2c_get_bus_speed(void *base)
{
struct mxc_i2c_regs *i2c_regs = (struct mxc_i2c_regs *)base;
u8 clk_idx = readb(&i2c_regs->ifdr);