diff mbox

[U-Boot] pmic:i2c: Replace legacy I2C_SET_BUS macro with i2c_set_bus_num()

Message ID 1376660126-26473-1-git-send-email-l.majewski@samsung.com
State Awaiting Upstream
Delegated to: Heiko Schocher
Headers show

Commit Message

Ɓukasz Majewski Aug. 16, 2013, 1:35 p.m. UTC
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>
---
 drivers/power/power_i2c.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Heiko Schocher Aug. 20, 2013, 10:20 a.m. UTC | #1
Hello Lukasz,

Am 16.08.2013 15:35, schrieb Lukasz Majewski:
> 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>
> ---
>   drivers/power/power_i2c.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-i2c.git, thanks.

bye,
Heiko
diff mbox

Patch

diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c
index 66b3bab..ac76870 100644
--- a/drivers/power/power_i2c.c
+++ b/drivers/power/power_i2c.c
@@ -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);