firmware: arm_scmi: Use {get,put}_unaligned_le{32,64} accessors
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 7 Aug 2019 12:46:27 +0000 (13:46 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 12 Aug 2019 11:23:01 +0000 (12:23 +0100)
commitaa90ac45bc88e6a8efb199e45dab5d5a6b01c3d2
tree79bc74c9ea824252cf4724b13ee267a21664401e
parent2bc06ffa0635e99cd4d88d6f6fe5bb4e4b9e50f1
firmware: arm_scmi: Use {get,put}_unaligned_le{32,64} accessors

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 <p.zabel@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/base.c
drivers/firmware/arm_scmi/clock.c
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/perf.c
drivers/firmware/arm_scmi/power.c
drivers/firmware/arm_scmi/sensors.c