From: Wolfgang Denk Date: Fri, 02 May 2014 07:48:08 +0200 Subject: [U-Boot] U-Boot, dm, ubi: struct device is declared twice In-Reply-To: <53632AC5.1030702@denx.de> References: <53632AC5.1030702@denx.de> Message-ID: <20140502054808.93722380999@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 Heiko, In message <53632AC5.1030702@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