diff options
author | Igor Prusov | 2023-11-09 20:10:03 +0300 |
---|---|---|
committer | Tom Rini | 2023-11-16 18:59:58 -0500 |
commit | 35425507b3253bb1e08110f67e130e7c9c272cf7 (patch) | |
tree | 7af115553d51ec5c2bdb6c4472e1ac86ba383773 /drivers | |
parent | d7ce04c7f4cbae9608287ebd810a411944efff9a (diff) |
spi: meson_spifc_a1: Use define for time interval
Use USEC_PER_MSEC define for timeout to sync code with Linux version.
Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/meson_spifc_a1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/meson_spifc_a1.c b/drivers/spi/meson_spifc_a1.c index 099c4c037dd..418d4d5e101 100644 --- a/drivers/spi/meson_spifc_a1.c +++ b/drivers/spi/meson_spifc_a1.c @@ -16,6 +16,7 @@ #include <spi-mem.h> #include <asm/io.h> #include <linux/log2.h> +#include <linux/time.h> #include <linux/iopoll.h> #include <linux/bitfield.h> @@ -117,7 +118,7 @@ static int amlogic_spifc_a1_request(struct amlogic_spifc_a1 *spifc, bool read) return readl_poll_timeout(spifc->base + SPIFC_A1_USER_CTRL0_REG, val, (val & mask) == mask, - 200 * 1000); + 200 * USEC_PER_MSEC); } static void amlogic_spifc_a1_drain_buffer(struct amlogic_spifc_a1 *spifc, |