mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
pmic:i2c: Replace legacy I2C_SET_BUS macro with i2c_set_bus_num()
After introduction of unified i2c model, the I2C_SET_BUS() macro is regarded as obsolete. Hence it is replaced with i2c_set_bus_num() function call. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Cc: Heiko Schocher <hs@denx.de> Cc: Tom Rini <trini@ti.com>
This commit is contained in:
parent
2936df1f11
commit
3fbb517f30
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val)
|
|||
|
||||
int pmic_probe(struct pmic *p)
|
||||
{
|
||||
I2C_SET_BUS(p->bus);
|
||||
i2c_set_bus_num(p->bus);
|
||||
debug("Bus: %d PMIC:%s probed!\n", p->bus, p->name);
|
||||
if (i2c_probe(pmic_i2c_addr)) {
|
||||
printf("Can't find PMIC:%s\n", p->name);
|
||||
|
|
Loading…
Reference in a new issue