From bb49a0f9b784d5ea872bf5fad8cf8964e243a216 Mon Sep 17 00:00:00 2001 From: Vaishali Thakkar Date: Wed, 24 Sep 2014 17:16:54 +0530 Subject: [PATCH] Staging: iio: adc: Use usleep_range instead of msleep This patch fixes following checkpatch.pl warning: WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt Signed-off-by: Vaishali Thakkar Acked-by: Daniel Baluta Signed-off-by: Greg Kroah-Hartman --- drivers/staging/iio/adc/ad7192.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c index 83bb44b38152..c110a255d4e8 100644 --- a/drivers/staging/iio/adc/ad7192.c +++ b/drivers/staging/iio/adc/ad7192.c @@ -213,7 +213,7 @@ static int ad7192_setup(struct ad7192_state *st, ret = spi_write(st->sd.spi, &ones, 6); if (ret < 0) goto out; - msleep(1); /* Wait for at least 500us */ + usleep_range(500, 1000); /* Wait for at least 500us */ /* write/read test for device presence */ ret = ad_sd_read_reg(&st->sd, AD7192_REG_ID, 1, &id); -- 2.39.5