spi: stm32: use explicit CPOL and CPHA mode bits
authorCezary Gapinski <cezary.gapinski@gmail.com>
Mon, 24 Dec 2018 22:00:31 +0000 (23:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 18:24:17 +0000 (18:24 +0000)
commitd6cea11b092a2c28ecf8371c093214cbb112e926
tree4cec5c306e71b317d3f96d17f96772377ee51f99
parentbb35c9f91a8dec397e76f332dd93637e396e9054
spi: stm32: use explicit CPOL and CPHA mode bits

Driver supports SPI mode 0 to 3 not only the mode 3.
Use SPI_CPOL and SPI_CPHA indicates that these bits
can be changed to obtain modes 0 - 3.

Signed-off-by: Cezary Gapinski <cezary.gapinski@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c