regulator: qcom_smd: Handle big endian CPUs
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 2 Sep 2015 22:46:51 +0000 (15:46 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 2 Sep 2015 23:11:01 +0000 (00:11 +0100)
commit2c652a98ca556cca7749c184f0246315367bfad4
treeca01798cb67f19fc37656c17be79c85edbbf442e
parentf5164b8833498825b3197cb34150b142a9fc5bbf
regulator: qcom_smd: 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.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_smd-regulator.c