staging: comedi: s626: usleep_range is preferred over udelay
Fix the checkpatch.pl issue: CHECK: usleep_range is preferred over udelay Signed-off-by: Saber Rezvani <irsaber@gmail.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
020883e5e5
commit
df6ff8a1ee
|
@ -1513,7 +1513,7 @@ static int s626_ai_insn_read(struct comedi_device *dev,
|
|||
|
||||
for (n = 0; n < insn->n; n++) {
|
||||
/* Delay 10 microseconds for analog input settling. */
|
||||
udelay(10);
|
||||
usleep_range(10, 20);
|
||||
|
||||
/* Start ADC by pulsing GPIO1 low */
|
||||
gpio_image = readl(dev->mmio + S626_P_GPIO);
|
||||
|
|
Loading…
Reference in New Issue