[U-Boot] [PATCH V4 05/13] misc: pmic: use I2C_SET_BUS in pmic I2C
Stefano Babic
sbabic at denx.de
Wed Oct 12 09:59:49 CEST 2011
Instead of using directly the i2c_set_bus() function,
the I2C_SET_BUS macro must be used to avoid build
errors for targets without multibus I2C.
Signed-off-by: Stefano Babic <sbabic at denx.de>
---
Changes since V3:
- instead adding i2c_set_bus_num(), use the macro I2C_SET_BUS()
that is already thought for targets without multibus I2C.
Changes since V2:
- codestyling: drop newline (Heiko Schocher)
Changes since V1:
- add a weak function i2c_set_bus_num() to cmd_i2c.c instead of adding a
dummy function to mxc_i2c.c. (Heiko Schocher)
drivers/misc/pmic_i2c.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/misc/pmic_i2c.c b/drivers/misc/pmic_i2c.c
index b82e899..ad55d64 100644
--- a/drivers/misc/pmic_i2c.c
+++ b/drivers/misc/pmic_i2c.c
@@ -81,7 +81,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val)
int pmic_probe(struct pmic *p)
{
- i2c_set_bus_num(p->bus);
+ I2C_SET_BUS(p->bus);
debug("PMIC:%s probed!\n", p->name);
if (i2c_probe(pmic_i2c_addr)) {
printf("Can't find PMIC:%s\n", p->name);
--
1.7.1
More information about the U-Boot
mailing list