[U-Boot] U-Boot, dm, ubi: struct device is declared twice

Wolfgang Denk wd at denx.de
Fri May 2 07:48:08 CEST 2014


Dear Heiko,

In message <53632AC5.1030702 at denx.de> you wrote:
> 
> How to solve this double named struct? I do not want to change this
> in Linux code as "struct device" is very much used, and this would
> be a maintaining nightmare for future syncs with linux code.
> 
> Should we rename the DM "struct device" in include/dm/device.h ?
...
> - * struct device - An instance of a driver
> + * struct dm_device - An instance of a driver

I agree that we should keep U-Boot code as compatible with Linux as
possible, i. e. I would suggest to rename our U-Boot struct.

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
If I had to live my life again,  I'd  make  the  same  mistakes, only
sooner.                                          -- Tallulah Bankhead


More information about the U-Boot mailing list