pmic:i2c: Replace legacy I2C_SET_BUS macro with i2c_set_bus_num()
PATCH 1/1 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 <[email protected]>
Cc Heiko Schocher <[email protected]>
Cc Tom Rini <[email protected]>
--- drivers/power/power_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/power_i2c.c +1 -1
@@ -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);
Signature · 1 line
1.7.10.4
PATCH 1/1 pmic:i2c: Replace legacy I2C_SET_BUS macro with i2c_set_bus_num()
Hello Lukasz,
Am 16.08.2013 15:35, schrieb Lukasz Majewski:
Quoted 10 lines
After introduction of unified i2c model, the
I2C_SET_BUS()macro is regarded as obsolete.
Hence it is replaced withi2c_set_bus_num()function call.Signed-off-by Lukasz Majewski<[email protected]>Cc Heiko Schocher<[email protected]>Cc Tom Rini<[email protected]>--- drivers/power/power_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-i2c.git, thanks.
bye,
Heiko
Signature · 2 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany