]> git.karo-electronics.de Git - linux-beck.git/commit
spi: fsl-espi: factor out fsl_espi_init_regs
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 13 Nov 2016 13:40:18 +0000 (14:40 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 14 Nov 2016 11:21:28 +0000 (11:21 +0000)
commit456c742be68eca1c8c55f4e0384f0418a55a31c5
tree210463b5ca8f4ca61780525c0ca5d24d953d4208
parent219b5e3b239226c50ff6c4de6abf0534407df620
spi: fsl-espi: factor out fsl_espi_init_regs

The register initialization is the same in fsl_espi_probe and in
of_fsl_espi_resume. Therefore factor it out into fsl_espi_init_regs.

It was actually a bug that CSMODE_BEF and CSMODE_AFT were not set
in of_fsl_espi_resume. Seems like nobody ever used values other
than zero for these parameters.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c