From: Wolfgang Denk Date: Wed, 17 Dec 2008 02:21:54 +0100 Subject: [U-Boot] [PATCH 1/2] cmd_i2c: rename EDO, DDR and SDRAM to avoid conflict with at91 memory setup In-Reply-To: <1229469026-7344-1-git-send-email-plagnioj@jcrosoft.com> References: <1229469026-7344-1-git-send-email-plagnioj@jcrosoft.com> Message-ID: <20081217012154.E9EC3832E8A1@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 Jean-Christophe PLAGNIOL-VILLARD, In message <1229469026-7344-1-git-send-email-plagnioj@jcrosoft.com> you wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > Cc: Timo Tuunainen > --- > common/cmd_i2c.c | 58 +++++++++++++++++++++++++++--------------------------- > 1 files changed, 29 insertions(+), 29 deletions(-) > > diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c > index 448f2fe..a662b53 100644 > --- a/common/cmd_i2c.c > +++ b/common/cmd_i2c.c > @@ -712,7 +712,7 @@ static void decode_bits (u_char const b, char const *str[], int const do_once) > */ > int do_sdram (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) > { > - enum { unknown, EDO, SDRAM, DDR2 } type; > + enum { unknown, _EDO, _SDRAM, _DDR2 } type; Please do not use leading underscores in regular variable names. They are reserved in C. 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 It must be remembered that there is nothing more difficult to plan, more doubtful of success, nor more dangerous to manage, than the creation of a new system. For the initiator has the enmity of all who would profit by the preservation of the old institutions and merely lukewarm defenders in those who would gain by the new ones. - Machiavelli