[PATCH 2/2] powerpc/prom: Switch to using structs for ibm_architecture_vec

2016-11-18 Thread Michael Ellerman
Now that we've defined structures to describe each of the client architecture vectors, we can use those to construct the value we pass to firmware. This avoids the tricks we previously played with the W() macro, allows us to properly endian annotate fields, and should help to avoid bugs introduced

[RFC PATCH 2/2] powerpc/prom: Switch to using structs for ibm_architecture_vec

2016-08-12 Thread Michael Ellerman
Now that we've defined structures to describe each of the client architecture vectors, we can use those to construct the value we pass to firmware. This avoids the tricks we previously played with the W() macro, allows us to properly endian annotate fields, and should help to avoid bugs introduced