spi: stm32: use bitfield macros
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Fri, 5 Feb 2021 18:59:27 +0000 (19:59 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 5 Feb 2021 19:16:57 +0000 (19:16 +0000)
commit5a380b833ad437123dca91bf900a696709d9b6ab
treef46c291cfb198a4d36cd6be67a97ac1a33c4f8c4
parent8f8d0e3e33e36ba63416cad64b9a9ad6b0129eed
spi: stm32: use bitfield macros

To avoid defining shift and mask separately and hand-coding the bit
manipulation, use the bitfield macros.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Link: https://lore.kernel.org/r/1612551572-495-4-git-send-email-alain.volmat@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c