spi: rockchip: precompute rx sample delay
authorEmil Renner Berthing <kernel@esmil.dk>
Wed, 31 Oct 2018 10:57:08 +0000 (11:57 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Nov 2018 11:42:32 +0000 (11:42 +0000)
commit74b7efa82b11914c21e30d987ed61d3daa57ff21
tree61a4e3de03e958c4f7d3629362b2e31e575c4b6c
parent420b82f842941a32adf309ca1b193adfc77616b0
spi: rockchip: precompute rx sample delay

Now that we no longer potentially change spi clock
at runtime we can precompute the rx sample delay
at probe time rather than for each transfer.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c