From 890d228fd901db88c4a79dbe8cd95aec8a0e57cd Mon Sep 17 00:00:00 2001 From: Vaishali Thakkar Date: Tue, 23 Sep 2014 09:22:30 +0530 Subject: [PATCH] Staging: iio: light: 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/light/isl29018.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c index 65a35daead32..f4e3ba08092b 100644 --- a/drivers/staging/iio/light/isl29018.c +++ b/drivers/staging/iio/light/isl29018.c @@ -563,7 +563,7 @@ static int isl29018_chip_init(struct isl29018_chip *chip) return status; } - msleep(1); /* per data sheet, page 10 */ + usleep_range(1000, 2000); /* per data sheet, page 10 */ /* set defaults */ status = isl29018_set_range(chip, chip->range, &new_range); -- 2.39.5