]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw: Update SPI bus speed in a config function
authorBaikal Electronics <support@baikalelectronics.ru>
Wed, 7 Oct 2020 23:54:53 +0000 (02:54 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 8 Oct 2020 22:00:08 +0000 (23:00 +0100)
commite9919fc81e2e216a598813fbb478666318b0e8e0
treec42330bd942c7feb4d2d34095b827e2a43d4b441
parent5e5914ff197b4f02a4360158fc0fa39f3de316ee
spi: dw: Update SPI bus speed in a config function

The SPI bus speed update functionality will be useful in another parts of
the driver too (like to implement the SPI memory operations and from the
DW SPI glue layers). Let's move it to the update_cr0() method then and
since the later is now updating not only the CTRLR0 register alter its
prototype to have a generic function name not related to CR0.

Leave the too long line with the chip->clk_div setting as is for now,
since it's going to be changed later anyway.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Link: https://lore.kernel.org/r/20201007235511.4935-5-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-core.c