spi: omap2-mcspi: raw read and write endian fix
commit21b2ce5e992f274c9cc45710d29aec11c8b5599a
authorVictor Kamensky <victor.kamensky@linaro.org>
Sat, 16 Nov 2013 00:01:16 +0000 (16 02:01 +0200)
committerMark Brown <broonie@linaro.org>
Sun, 24 Nov 2013 14:06:45 +0000 (24 14:06 +0000)
tree211ed601bf5dcf7ed87e25912406f32c0b702dea
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
spi: omap2-mcspi: raw read and write endian fix

All OMAP IP blocks expect LE data, but CPU may operate in BE mode.
Need to use endian neutral functions to read/write h/w registers.
I.e instead of __raw_read[lw] and __raw_write[lw] functions code
need to use read[lw]_relaxed and write[lw]_relaxed functions.
If the first simply reads/writes register, the second will byteswap
it if host operates in BE mode.

Changes are trivial sed like replacement of __raw_xxx functions
with xxx_relaxed variant.

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-omap2-mcspi.c