Skip to content
Snippets Groups Projects
Commit 9b107e61 authored by Heiko Schocher's avatar Heiko Schocher
Browse files

post, i2c: add missing curly bracket in i2c_post_test


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: default avatarHeiko Schocher <hs@denx.de>
parent 00913379
No related branches found
No related tags found
No related merge requests found
...@@ -63,11 +63,12 @@ int i2c_post_test (int flags) ...@@ -63,11 +63,12 @@ int i2c_post_test (int flags)
unsigned int i; unsigned int i;
#ifndef CONFIG_SYS_POST_I2C_ADDRS #ifndef CONFIG_SYS_POST_I2C_ADDRS
/* Start at address 1, address 0 is the general call address */ /* 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)) if (i2c_ignore_device(i))
continue; continue;
if (i2c_probe (i) == 0) if (i2c_probe (i) == 0)
return 0; return 0;
}
/* No devices found */ /* No devices found */
return -1; return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment