From: Wolfgang Denk Date: Thu, 05 Jun 2008 00:06:20 +0200 Subject: [U-Boot-Users] [RFC/PATCH 1/6] Move definition of container_of() to common.h In-Reply-To: Your message of "Fri, 16 May 2008 11:10:30 +0200." <1210929035-7997-1-git-send-email-haavard.skinnemoen@atmel.com> Message-ID: <20080604220620.3BE50247CC@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 In message <1210929035-7997-1-git-send-email-haavard.skinnemoen@atmel.com> you wrote: > AVR32 and AT91SAM9 both have their own identical definitions of > container_of() taken from the Linux kernel. Move it to common.h so > that all architectures can use it. > > container_of() is already used by some drivers, and will be used > extensively by the new and improved SPI API. > > Signed-off-by: Haavard Skinnemoen > --- > include/asm-arm/arch-at91sam9/hardware.h | 11 ----------- > include/asm-avr32/u-boot.h | 11 ----------- > include/common.h | 11 +++++++++++ > 3 files changed, 11 insertions(+), 22 deletions(-) Applied, thanks. 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 HR Manager to job candidate "I see you've had no computer training. Although that qualifies you for upper management, it means you're under-qualified for our entry level positions."