From: Tom Rini Date: Thu, 22 May 2014 20:43:07 -0400 Subject: [U-Boot] [RFC, PATCH v2 1/4] dm: rename device struct to udevice In-Reply-To: References: <1400755388-14922-1-git-send-email-hs@denx.de> <1400755388-14922-2-git-send-email-hs@denx.de> Message-ID: <20140523004307.GQ1752@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, May 22, 2014 at 10:34:33AM -1000, Simon Glass wrote: > +Tom > > Hi Heiko, > > On 22 May 2014 00:43, Heiko Schocher wrote: > > using UBI and DM together leads in compiler error, as > > both define a "struct device", so rename "struct device" > > in include/dm/device.h to "struct udevice", as we use > > linux code (MTD/UBI/UBIFS some USB code,...) and cannot > > change the linux "struct device" > > > > Signed-off-by: Heiko Schocher > > Cc: Simon Glass > > Cc: Marek Vasut > > I'm not 100% comfortable with this but if we really want to avoid > changing kernel code that moves into U-Boot it is either this or a > '#define device ldevice' at the top of the linux code/in a header. I'm > not sure which is preferable. > > If Tom decides to apply this, I'd like to request that it be done > soon, since it has wide impact on driver model code. > > Acked-by: Simon Glass I like it, I'm going to grab it Monday and I'm going to kick out -rc2 on Monday as well, which should be a semi-handy branching off point too then. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: