Skip to contentSkip to conversation

iio: frequency: ad9523: Increase sleep time in ad9523_store_eeprom

PATCH In review Roberta Dobrescu 2 participants 2 messages Dec 30, 2014 – Jan 1, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 iio: frequency: ad9523: Increase sleep time in ad9523_store_eeprom

This patch increases sleep time in ad9523_store_eeprom to 20ms since it isn't timing critical. It fixes the following checkpatch.pl warning:
WARNING: msleep < 20ms can sleep for up to 20ms

---
Changes since v1:
* Increase sleep time in msleep instead of using usleep_range
* Change subject and commit message accordingly

 drivers/iio/frequency/ad9523.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/frequency/ad9523.c +1 -1
index 7c5245d..50ed8d1 100644
@@ -445,7 +445,7 @@ static int ad9523_store_eeprom(struct iio_dev *indio_dev)
 
 	tmp = 4;
 	do {
-		msleep(16);
+		msleep(20);
 		ret = ad9523_read(indio_dev,
 				  AD9523_EEPROM_DATA_XFER_STATUS);
 		if (ret < 0)
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 5 lines · Roberta Dobrescu

This patch increases sleep time in ad9523_store_eeprom to 20ms since it isn't timing critical. It fixes the following checkpatch.pl warning:
WARNING: msleep < 20ms can sleep for up to 20ms

Applied to the togreg branch of iio.git - initially pushed out as testing for the autobuilders to play.

Quoted 22 lines

---
Changes since v1:
* Increase sleep time in msleep instead of using usleep_range
* Change subject and commit message accordingly

 drivers/iio/frequency/ad9523.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/frequency/ad9523.c +1 -1
index 7c5245d..50ed8d1 100644
@@ -445,7 +445,7 @@ static int ad9523_store_eeprom(struct iio_dev *indio_dev)
 
 	tmp = 4;
 	do {
-		msleep(16);
+		msleep(20);
 		ret = ad9523_read(indio_dev,
 				  AD9523_EEPROM_DATA_XFER_STATUS);
 		if (ret < 0)