]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita69d3ddcdc60cbf5e69f1668d59400cd15ddbabf
tree4cec5c306e71b317d3f96d17f96772377ee51f99
parent70837b7c85136f961efc8abcc4b5d0531d7e8b31
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