mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 13:01:17 +02:00
i2c: Correct spelling error
"diconnect" and "disconnet" should both be "disconnect". Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
This commit is contained in:
committed by
Heiko Schocher
parent
2fe50ef403
commit
f4ed36964a
@@ -174,7 +174,7 @@ static int i2c_mux_set_all(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int i2c_mux_disconnet_all(void)
|
static int i2c_mux_disconnect_all(void)
|
||||||
{
|
{
|
||||||
struct i2c_bus_hose *i2c_bus_tmp = &i2c_bus[I2C_BUS];
|
struct i2c_bus_hose *i2c_bus_tmp = &i2c_bus[I2C_BUS];
|
||||||
int i;
|
int i;
|
||||||
@@ -197,7 +197,7 @@ static int i2c_mux_disconnet_all(void)
|
|||||||
|
|
||||||
ret = I2C_ADAP->write(I2C_ADAP, chip, 0, 0, &buf, 1);
|
ret = I2C_ADAP->write(I2C_ADAP, chip, 0, 0, &buf, 1);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
printf("i2c: mux diconnect error\n");
|
printf("i2c: mux disconnect error\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
} while (i > 0);
|
} while (i > 0);
|
||||||
@@ -293,7 +293,7 @@ int i2c_set_bus_num(unsigned int bus)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CONFIG_SYS_I2C_DIRECT_BUS
|
#ifndef CONFIG_SYS_I2C_DIRECT_BUS
|
||||||
i2c_mux_disconnet_all();
|
i2c_mux_disconnect_all();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gd->cur_i2c_bus = bus;
|
gd->cur_i2c_bus = bus;
|
||||||
|
Reference in New Issue
Block a user