From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 18 Jan 2016 07:00:22 +0100 Subject: [U-Boot] [PATCH 3/5] i2c: omap24xx: Remove unused I2C_WAIT macro In-Reply-To: <1453028992-14220-4-git-send-email-christophe-h.ricard@st.com> References: <1453028992-14220-1-git-send-email-christophe-h.ricard@st.com> <1453028992-14220-4-git-send-email-christophe-h.ricard@st.com> Message-ID: <569C7F76.3070802@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Christophe, Am 17.01.2016 um 12:09 schrieb Christophe Ricard: > 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 > --- > > drivers/i2c/omap24xx_i2c.c | 3 --- > 1 file changed, 3 deletions(-) Thanks! Acked-by: Heiko Schocher bye, Heiko > > 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; > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany