]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitcfd6693c06324174ceeac7aed570a0df67db7c4f
treed74dcce50550399c0bf6c747fe491649fddf6c85
parent0cc059abac0dc687dc714f3ec2c8d8a134132f56
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