]> git.baikalelectronics.ru Git - kernel.git/commit
spi: armada-3700: Replaced raw values for nbits by the SPI macros
authorRomain Perier <romain.perier@free-electrons.com>
Wed, 21 Dec 2016 10:10:30 +0000 (11:10 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 31 Dec 2016 18:53:16 +0000 (18:53 +0000)
commitaacb225e484943abb38ffd6b038fa2e3f68d9b49
treed74dcce50550399c0bf6c747fe491649fddf6c85
parent736644359ea23dcb27d5d0c2371a9a38f0f4f774
spi: armada-3700: Replaced raw values for nbits by the SPI macros

Currently, function a3700_spi_pin_mode_set() configures the SPI transfer
mode according to the value passed as second argument. This value is
detected using the raw values from a switch case.

This commit replaces these raw values by the corresponding macro
constants in linux/spi/spi.h

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-armada-3700.c