projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c38f7d
)
misc: pmic: use I2C_SET_BUS in pmic I2C
author
Stefano Babic
<sbabic@denx.de>
Tue, 11 Oct 2011 17:18:05 +0000
(19:18 +0200)
committer
Albert ARIBAUD
<albert.u.boot@aribaud.net>
Thu, 27 Oct 2011 19:56:31 +0000
(21:56 +0200)
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@denx.de>
drivers/misc/pmic_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/misc/pmic_i2c.c
b/drivers/misc/pmic_i2c.c
index b82e8997e017c1fbaf1c00fc2327d291707eb1c9..ad55d6447e37a23f9917eb864ae7d17bde56713a 100644
(file)
--- 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);