]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31fd8b2ad0b268e6d9107b94c3901d1555ad1128
treef46c291cfb198a4d36cd6be67a97ac1a33c4f8c4
parent397f3af55be05caa6f16c231fd012f9274ac9114
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