On Monday, 26 September 2016 18:35:32 BST Simon Glass wrote: > > +enum { > > + REG_IEN = 0x00, > > + REG_ISTATUS = 0x04, > > + REG_IDISP = 0x08, > > + REG_ICLR = 0x0c, > > + REG_IMASK = 0x10, > > + REG_IMASKCLR = 0x14, > > + REG_PO = 0x18, > > + REG_PI = 0x1c, > > + REG_PM = 0x20, > > How about using a struct?
Hi Simon, Interesting - I was told over here[1] that using structs for register access was "deprecated". [1] https://www.mail-archive.com/u-boot@lists.denx.de/msg220500.html[1] ...so I actually converted the driver away from that style before submitting. Yet both yourself & Bin have suggested it - shall I take it that it's not deprecated after all? Thanks, Paul -------- [1] https://www.mail-archive.com/u-boot@lists.denx.de/msg220500.html
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot