]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: spi-stm32-qspi: Remove CR_FTHRES_MASK usage
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 20 Jun 2019 13:13:23 +0000 (15:13 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jun 2019 16:28:43 +0000 (17:28 +0100)
commit94613d5ae1091a28b33f38e18d96e8d953ac18df
treec94000124b804108588aa43b95b975db8a2863b1
parenta75e91bad717fea43358e7f743de5f93c4e5978f
spi: spi-stm32-qspi: Remove CR_FTHRES_MASK usage

On STM32 F4/F7/H7 SoCs, FTHRES is a 5 bits field in QSPI_CR register,
but for STM32MP1 SoCs, FTHRES is a 4 bits field long. CR_FTHRES_MASK
definition is not correct.

As for all these SoCs, FTHRES field is set to 3, FIELD_PREP() macro
is used with a constant as second parameter which make its usage useless.

CR_FTHRES_MASK and FIELD_PREP() can be removed.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-qspi.c