diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2010-10-22 00:20:30 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-10-22 02:19:00 -0500 |
commit | 60aaaa0782848062d0f499382035acc09eaff352 (patch) | |
tree | edaf572123907dcbc9badec0a2e45250efb73c3c /post/drivers | |
parent | 9f949c9ac2c1bb5077a146753e24c7b3fe099991 (diff) | |
download | u-boot-imx-60aaaa0782848062d0f499382035acc09eaff352.zip u-boot-imx-60aaaa0782848062d0f499382035acc09eaff352.tar.gz u-boot-imx-60aaaa0782848062d0f499382035acc09eaff352.tar.bz2 |
post/i2c: Rename I2C_ADDR_LIST to CONFIG_SYS_POST_I2C_ADDRS
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'post/drivers')
-rw-r--r-- | post/drivers/i2c.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/post/drivers/i2c.c b/post/drivers/i2c.c index 3508177..e6f4c6a 100644 --- a/post/drivers/i2c.c +++ b/post/drivers/i2c.c @@ -26,10 +26,10 @@ * * For verifying the I2C bus, a full I2C bus scanning is performed. * - * #ifdef I2C_ADDR_LIST + * #ifdef CONFIG_SYS_POST_I2C_ADDRS * The test is considered as passed if all the devices and * only the devices in the list are found. - * #else [ ! I2C_ADDR_LIST ] + * #else [ ! CONFIG_SYS_POST_I2C_ADDRS ] * The test is considered as passed if any I2C device is found. * #endif */ @@ -43,7 +43,7 @@ int i2c_post_test (int flags) { unsigned int i; -#ifndef I2C_ADDR_LIST +#ifndef CONFIG_SYS_POST_I2C_ADDRS /* Start at address 1, address 0 is the general call address */ for (i = 1; i < 128; i++) if (i2c_probe (i) == 0) @@ -54,7 +54,7 @@ int i2c_post_test (int flags) #else unsigned int ret = 0; int j; - const unsigned char i2c_addr_list[] = I2C_ADDR_LIST; + const unsigned char i2c_addr_list[] = CONFIG_SYS_POST_I2C_ADDRS; /* Start at address 1, address 0 is the general call address */ for (i = 1; i < 128; i++) { |