[U-Boot] [PATCH 3/5] i2c: omap24xx: Remove unused I2C_WAIT macro
Christophe Ricard
christophe.ricard at gmail.com
Sun Jan 17 12:09:50 CET 2016
I2C_WAIT macro is not used in the code.
200 is bound to a fixed 100000 Hz i2c speed based on an existing formula:
( 10000000 / speed ) * 2 where speed = 100 000.
Signed-off-by: Christophe Ricard <christophe-h.ricard at st.com>
---
drivers/i2c/omap24xx_i2c.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c
index d6e5fe9..48ca446 100644
--- a/drivers/i2c/omap24xx_i2c.c
+++ b/drivers/i2c/omap24xx_i2c.c
@@ -55,9 +55,6 @@ DECLARE_GLOBAL_DATA_PTR;
#define I2C_TIMEOUT 1000
-/* Absolutely safe for status update at 100 kHz I2C: */
-#define I2C_WAIT 200
-
#ifdef CONFIG_DM_I2C
struct omap24_i2c_bus {
int bus_num;
--
2.5.0
More information about the U-Boot
mailing list