From: Wolfgang Denk Date: Tue, 31 Mar 2009 22:40:22 +0200 Subject: [U-Boot] [PATCH 12/13] at91: add hardware i2c drivers In-Reply-To: <49D05E5F.6060000@denx.de> References: <1238193026-12564-1-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-2-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-3-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-4-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-5-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-6-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-7-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-8-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-9-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-10-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-11-git-send-email-plagnioj@jcrosoft.com> <1238193026-12564-12-git-send-email-plagnioj@jcrosoft.com> <49D05E5F.6060000@denx.de> Message-ID: <20090331204022.1BA9183797DC@gemini.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 Dear Heiko Schocher, In message <49D05E5F.6060000@denx.de> you wrote: > ... > Independent from your patch, I think we need here a common > rule. Either we name in future this define "CONFIG_I2C_XXX" > or "CONFIG_XXX_I2C. I vote for using "CONFIG_I2C_XXX" Me too. ... > > +#ifdef CONFIG_HARD_I2C > > Why not "#if defined(CONFIG_I2C_ATMEL)" as in the Makefile? Excellent question. > > +#if 0 /* EEPROM code already sets this correctly */ > > + chip |= (addr >> 8) & 0xff; > > +#endif > > > > please remove dead code. Agreed. > > +#if 0 /* EEPROM code already sets this correctly */ > > + chip |= (addr >> 8) & 0xff; > > +#endif > > here too, please remove dead code. Ditto. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Anyone can count the seeds in an apple. No one can count the apples in a seed.