Re: [PATCH v2] firmware: arm_scmi: Use {get,put}_unaligned_le{32,64} accessors

2019-08-08 Thread Philipp Zabel
On Wed, 2019-08-07 at 18:37 +0100, Sudeep Holla wrote: > Instead of type-casting the {tx,rx}.buf all over the place while > accessing them to read/write __le{32,64} from/to the firmware, let's > use the existing {get,put}_unaligned_le{32,64} accessors to hide all > the type cast ugliness. > > Sugg

[PATCH v2] firmware: arm_scmi: Use {get,put}_unaligned_le{32,64} accessors

2019-08-07 Thread Sudeep Holla
Instead of type-casting the {tx,rx}.buf all over the place while accessing them to read/write __le{32,64} from/to the firmware, let's use the existing {get,put}_unaligned_le{32,64} accessors to hide all the type cast ugliness. Suggested-by: Philipp Zabel Signed-off-by: Sudeep Holla --- drivers/