From: Wolfgang Denk Date: Tue, 07 Jun 2011 17:51:14 +0200 Subject: [U-Boot] [PATCH 1/5] Tegra2: Add bitfield access macros In-Reply-To: References: <1306973675-8411-1-git-send-email-sjg@chromium.org> <1306973675-8411-2-git-send-email-sjg@chromium.org> <20110606185044.EFE7C1736815@gemini.denx.de> <20110607062809.D084D1EA2A6@gemini.denx.de> <20110607100623.01E351EA347@gemini.denx.de> Message-ID: <20110607155114.059EF195494F@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 Simon Glass, In message you wrote: > > But the FIELD is specified twice in the same statement. Can we > therefore please take this a step further and write something like > this? > > clrsetfield_le32(&my_device->ctrl, FIELD, 6); I consider this too specific on one side, and the additional effort to write two arguments too less of an issue to introduce another macro. 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 : ... and it's got weird formatting - Notepad, Write, Works 3 can't : decipher it, and it's too big to go in DOS Edit. Help! Install an operating system. :-) -- Tom Christiansen