From: Vaishali Thakkar Date: Tue, 23 Sep 2014 03:52:30 +0000 (+0530) Subject: Staging: iio: light: Use usleep_range instead of msleep X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=890d228fd901db88c4a79dbe8cd95aec8a0e57cd;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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);