* [U-Boot] [PATCH] post, i2c: add missing curly bracket in i2c_post_test
@ 2010-11-15 7:34 Heiko Schocher
2010-11-18 18:45 ` Heiko Schocher
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Schocher @ 2010-11-15 7:34 UTC (permalink / raw)
To: u-boot
If CONFIG_SYS_POST_I2C_ADDRS is not defined and CONFIG_SYS_POST_I2C
is activated, i2c_probe() is not called in the for statement,
because missing curly bracket.
Signed-off-by: Heiko Schocher <hs@denx.de>
---
post/drivers/i2c.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/post/drivers/i2c.c b/post/drivers/i2c.c
index 4a1b1a4..4cbd9f3 100644
--- a/post/drivers/i2c.c
+++ b/post/drivers/i2c.c
@@ -63,11 +63,12 @@ int i2c_post_test (int flags)
unsigned int i;
#ifndef CONFIG_SYS_POST_I2C_ADDRS
/* Start at address 1, address 0 is the general call address */
- for (i = 1; i < 128; i++)
+ for (i = 1; i < 128; i++) {
if (i2c_ignore_device(i))
continue;
if (i2c_probe (i) == 0)
return 0;
+ }
/* No devices found */
return -1;
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] post, i2c: add missing curly bracket in i2c_post_test
2010-11-15 7:34 [U-Boot] [PATCH] post, i2c: add missing curly bracket in i2c_post_test Heiko Schocher
@ 2010-11-18 18:45 ` Heiko Schocher
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Schocher @ 2010-11-18 18:45 UTC (permalink / raw)
To: u-boot
Hello Heiko,
Heiko Schocher wrote:
> If CONFIG_SYS_POST_I2C_ADDRS is not defined and CONFIG_SYS_POST_I2C
> is activated, i2c_probe() is not called in the for statement,
> because missing curly bracket.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
> ---
> post/drivers/i2c.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
Applied to u-boot-iwc.git.
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-18 18:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-15 7:34 [U-Boot] [PATCH] post, i2c: add missing curly bracket in i2c_post_test Heiko Schocher
2010-11-18 18:45 ` Heiko Schocher
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.