Skip to content

Commit 890d228

Browse files
v-thakkargregkh
authored andcommitted
Staging: iio: light: Use usleep_range instead of msleep
This patch fixes following checkpatch.pl warning: WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 89021ec commit 890d228

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/staging/iio/light/isl29018.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ static int isl29018_chip_init(struct isl29018_chip *chip)
563563
return status;
564564
}
565565

566-
msleep(1); /* per data sheet, page 10 */
566+
usleep_range(1000, 2000); /* per data sheet, page 10 */
567567

568568
/* set defaults */
569569
status = isl29018_set_range(chip, chip->range, &new_range);

0 commit comments

Comments
 (0)