spi: sh-msiof: Use readl_poll_timeout_atomic() instead of open-coding
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 2 Apr 2019 14:40:22 +0000 (16:40 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 3 Apr 2019 04:32:26 +0000 (11:32 +0700)
commit9115b4d89b213dc73fd35844e0199b1763f751d6
treec32b3e9408185a955106cb9b67a00c7d45bbf078
parent8863eca8c46affaa91ae35390b00358b925483eb
spi: sh-msiof: Use readl_poll_timeout_atomic() instead of open-coding

Replace the open-coded loop in sh_msiof_modify_ctr_wait() by a call to
the readl_poll_timeout_atomic() helper macro.

Suggested-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sh-msiof.c