soc: qcom: smd_rpm: Handle big endian CPUs
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 2 Sep 2015 22:46:50 +0000 (15:46 -0700)
committerAndy Gross <agross@codeaurora.org>
Wed, 14 Oct 2015 19:51:21 +0000 (14:51 -0500)
commit30b7ea5eda0afb13164b2d7049a56645cfc1d47b
tree079da3999634f35fb1359748e7f6a500a7e2f5e3
parent50e1b29b4438bdb0be61ff41e6925cab6f8a9284
soc: qcom: smd_rpm: Handle big endian CPUs

The smd rpm structures are always in little endian, but this
driver is not capable of being used on big endian CPUs. Annotate
the little endian data members and update the code to do the
proper byte swapping.

Cc: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Andy Gross <agross@codeaurora.org>
drivers/soc/qcom/smd-rpm.c