Skip to content
Snippets Groups Projects
Commit 3fbb517f authored by Łukasz Majewski's avatar Łukasz Majewski Committed by Heiko Schocher
Browse files

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: default avatarLukasz Majewski <l.majewski@samsung.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
parent 2936df1f
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val) ...@@ -98,7 +98,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val)
int pmic_probe(struct pmic *p) 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); debug("Bus: %d PMIC:%s probed!\n", p->bus, p->name);
if (i2c_probe(pmic_i2c_addr)) { if (i2c_probe(pmic_i2c_addr)) {
printf("Can't find PMIC:%s\n", p->name); printf("Can't find PMIC:%s\n", p->name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment