[U-Boot-Users] [RFC/PATCH 1/6] Move definition of container_of() to common.h

Wolfgang Denk wd at denx.de
Thu Jun 5 00:06:20 CEST 2008


In message <1210929035-7997-1-git-send-email-haavard.skinnemoen at 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 <haavard.skinnemoen at atmel.com>
> ---
>  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."




More information about the U-Boot mailing list