summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNikita Kiryanov <[email protected]>2016-04-16 17:55:02 +0300
committerTom Rini <[email protected]>2016-05-20 17:02:06 -0400
commit2636ac65a84f2bbab4b6a773384cfc630b9b6d7b (patch)
tree6f4ef0a50f30056edafc0589273379fcaa25236d /cmd
parentfbaf42724f372ee3fb0d7cd83107f5bae416028f (diff)
cmd: eeprom: add bus switching support for all i2c drivers
The i2c_init function is always provided when CONFIG_SYS_I2C is defined. No need to limit ourselves to just one supported I2C driver (soft_i2c). Update the #ifdef conditions to support bus switching for all I2C drivers. Cc: Heiko Schocher <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Igor Grinberg <[email protected]> Cc: Tom Rini <[email protected]> Signed-off-by: Nikita Kiryanov <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/eeprom.c b/cmd/eeprom.c
index e5457ba0cf4..208b4138c11 100644
--- a/cmd/eeprom.c
+++ b/cmd/eeprom.c
@@ -72,7 +72,7 @@ void eeprom_init(int bus)
#endif
/* I2C EEPROM */
-#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT)
+#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)
#if defined(CONFIG_SYS_I2C)
if (bus >= 0)
i2c_set_bus_num(bus);