staging: comedi: gsc_hpdi: usleep_range is preferred over udelay
authorIan Abbott <abbotti@mev.co.uk>
Tue, 5 May 2015 17:47:26 +0000 (18:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 12:57:26 +0000 (14:57 +0200)
commit7b7afb469cfe9eb384028f86ce4ec2fb8946f772
treef40d744908f9302b9c45c37b18b673acdf58145b
parente899a4165cffe3aa802f813c624e90ce7ca23189
staging: comedi: gsc_hpdi: usleep_range is preferred over udelay

Fix checkpatch issue: "CHECK: usleep_range is preferred over udelay; see
Documentation/timers/timers-howto.txt".  `udelay()` is only called once
from a place where sleeping is allowed.  Replace it with a call to
`usleep_range()` with a reasonable upper limit.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/gsc_hpdi.c