spi: a3700: Remove endianness swapping for full-duplex transfers
authorMaxime Chevallier <maxime.chevallier@smile.fr>
Wed, 24 Jan 2018 14:10:48 +0000 (15:10 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jan 2018 15:03:31 +0000 (15:03 +0000)
commit34b1fcaeb21de2a64004a95a1dc52d7e9998b733
treed529ad542665292b1f2eb601980069ce222e8b88
parent162f8debc01f48ac984ed6d7291743053ec90271
spi: a3700: Remove endianness swapping for full-duplex transfers

Fixes the following sparse warnings :
line 767: warning: incorrect type in assignment (different base types)
line 767:    expected unsigned int [unsigned] [assigned] [usertype] val_out
line 767:    got restricted __le32 [usertype] <noident>
line 776: warning: cast to restricted __le32

This takes advantage of readl/writel to do the endianness reordering,
and removes an extra variable in the function.

Fixes: f68a7dcb91b7 ("spi: a3700: Add full-duplex support")
Signed-off-by: Maxime Chevallier <maxime.chevallier@smile.fr>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-armada-3700.c