serdev: Replace poll loop by readx_poll_timeout() macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 14 Nov 2022 15:18:13 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Nov 2022 16:53:10 +0000 (17:53 +0100)
commit96e8298945010d4b0a0c21841566401848a42afc
tree8d35a760581a8bcc5b64473e0e50f1995add36da
parent24ce048b0d4d4d8542c26459e53be4b7840d374c
serdev: Replace poll loop by readx_poll_timeout() macro

The readx_poll_timeout() consolidates the necessary code under
macro. Replace current code with it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221114151813.37294-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serdev.h