Staging: iio: Switch from msleep to usleep range per timers-howto.txt
authorMichael Welling <mwelling@ieee.org>
Thu, 10 Apr 2014 02:26:45 +0000 (21:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:29 +0000 (08:29 -0700)
Signed-off-by: Michael Welling <mwelling@ieee.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/light/tsl2583.c

index f015fb4..fa96498 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;