From: Michael Welling Date: Thu, 10 Apr 2014 02:26:45 +0000 (-0500) Subject: Staging: iio: Switch from msleep to usleep range per timers-howto.txt X-Git-Tag: firefly_0821_release~176^2~3465^2~39^2~1545 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7fe704ce6af8f5996ebde436afdb9fa2599a7384;p=firefly-linux-kernel-4.4.55.git Staging: iio: Switch from msleep to usleep range per timers-howto.txt Signed-off-by: Michael Welling Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/light/tsl2583.c b/drivers/staging/iio/light/tsl2583.c index f015fb4c09a8..fa9649879662 100644 --- a/drivers/staging/iio/light/tsl2583.c +++ b/drivers/staging/iio/light/tsl2583.c @@ -451,7 +451,7 @@ static int taos_chip_on(struct iio_dev *indio_dev) } } - msleep(3); + usleep_range(3000, 3500); /* NOW enable the ADC * initialize the desired mode of operation */ utmp = TSL258X_CNTL_PWR_ON | TSL258X_CNTL_ADC_ENBL;