diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2014-09-23 03:52:30 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-23 20:31:36 (GMT) |
commit | 890d228fd901db88c4a79dbe8cd95aec8a0e57cd (patch) | |
tree | 4bc36094c8569dda45baa2cca010d2733074e58a /drivers/staging/iio/light | |
parent | 89021ecc8364e727a24b0683a74515c8ddf308db (diff) | |
download | linux-890d228fd901db88c4a79dbe8cd95aec8a0e57cd.tar.xz |
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>
Diffstat (limited to 'drivers/staging/iio/light')
-rw-r--r-- | drivers/staging/iio/light/isl29018.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c index 65a35da..f4e3ba0 100644 --- a/drivers/staging/iio/light/isl29018.c +++ b/drivers/staging/iio/light/isl29018.c @@ -563,7 +563,7 @@ static int isl29018_chip_init(struct isl29018_chip *chip) return status; } - msleep(1); /* per data sheet, page 10 */ + usleep_range(1000, 2000); /* per data sheet, page 10 */ /* set defaults */ status = isl29018_set_range(chip, chip->range, &new_range); |