iio: frequency: ad9523: Increase sleep time in ad9523_store_eeprom
authorRoberta Dobrescu <roberta.dobrescu@gmail.com>
Tue, 30 Dec 2014 18:44:34 +0000 (20:44 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 1 Jan 2015 12:18:26 +0000 (12:18 +0000)
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

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/frequency/ad9523.c

index 7c5245d9f99ccc82abee8d7eb9fdb5e14e0b3102..50ed8d1ca45a61141cd4fe4ed86dd571e81cde4a 100644 (file)
@@ -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)