Staging:iio:tsl2583 Switch from msleep to usleep range per timers-howto.txt
authorMichael Welling <mwelling@ieee.org>
Sat, 4 Oct 2014 02:26:00 +0000 (03:26 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Apr 2014 17:34:35 +0000 (18:34 +0100)
Signed-off-by: Michael Welling <mwelling@ieee.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c

index 8d46c92f6f643f670a39fd7c9eea293fe7f1ea3e..de3c9d8e77227aa44bc88bf0766489d7674a012b 100644 (file)
@@ -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;