staging: comedi: amplc_pci230: usleep_range is preferred over udelay
authorIan Abbott <abbotti@mev.co.uk>
Tue, 29 Jul 2014 11:58:14 +0000 (12:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:54:03 +0000 (16:54 -0700)
Fix checkpatch issue: "CHECK: usleep_range is preferred over udelay; see
Documentation/timers/timers-howto.txt".  I picked 100 us as a reasonable
upper bound, but it's not that critical.

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/amplc_pci230.c

index 76c4625991b263c0a4e636965b311b6dcf7fb59c..00d7a2277e85f3c83a77ba01b74eb7e2f3a22b01 100644 (file)
@@ -2480,7 +2480,7 @@ static int pci230_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
         * channel gains and scan list _before_ the first FIFO reset also
         * helps, though only slightly.
         */
-       udelay(25);
+       usleep_range(25, 100);
 
        /* Reset FIFO again. */
        outw(adccon | PCI230_ADC_FIFO_RESET, dev->iobase + PCI230_ADCCON);