On Tue, 2013-04-16 at 09:57 -0600, Stephen Warren wrote: > > Mmm, I need to read more on dtc+cpp, I do not think that leaving it > > as a string would hurt though, am I wrong ? Can we assume that all > dts > > are preprocessed before being compiled and passed to the kernel ? > > It wouldn't hurt too much, but representing enums as strings when > there's a capability to simply represent it as a integer just feels > pretty gross to me.
It's the other way around... Unless there's a direct semantic meaning of the numbers, things like that (ie. "methods") should be represented as strings. Else we fall back to the realm of "magic numbers" which sucks and causes all sort of pains when several new methods get added by different people, etc... The tree is meant to be generally human readable and we should stick to that. The tiny memory usage is irrelevant on any modern setup. Cheers, Ben. _______________________________________________ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss