瀏覽代碼

Staging:iio:tsl2583 Switch from msleep to usleep range per timers-howto.txt

Signed-off-by: Michael Welling <mwelling@ieee.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Michael Welling 11 年之前
父節點
當前提交
e193385bf4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/iio/light/tsl2583.c

+ 1 - 1
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
 	/* NOW enable the ADC
 	 * initialize the desired mode of operation */
 	 * initialize the desired mode of operation */
 	utmp = TSL258X_CNTL_PWR_ON | TSL258X_CNTL_ADC_ENBL;
 	utmp = TSL258X_CNTL_PWR_ON | TSL258X_CNTL_ADC_ENBL;