mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 07:17:10 +00:00
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>
This commit is contained in:
parent
2515d8437b
commit
7f86bd576f
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ static uint8_t i2c_imx_get_clk(unsigned int rate)
|
||||||
/*
|
/*
|
||||||
* Set I2C Bus speed
|
* 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;
|
struct mxc_i2c_regs *i2c_regs = (struct mxc_i2c_regs *)base;
|
||||||
u8 clk_idx = i2c_imx_get_clk(speed);
|
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
|
* 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;
|
struct mxc_i2c_regs *i2c_regs = (struct mxc_i2c_regs *)base;
|
||||||
u8 clk_idx = readb(&i2c_regs->ifdr);
|
u8 clk_idx = readb(&i2c_regs->ifdr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue