]> 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)
commit320ff0cc174fdf5e475d35a50c1175058b29ac60
tree4cec5c306e71b317d3f96d17f96772377ee51f99
parentf4501df4abe68a30c5cc4397bfb76dc1e6a9c93a
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