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 f015fb4c09a8cf5ccbd46ab1e781b8a2918f3d6f..fa9649879662f11464bc294adf9e2e7a82abe3db 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;