Commit df6ff8a1 authored by Saber Rezvani's avatar Saber Rezvani Committed by Greg Kroah-Hartman

staging: comedi: s626: usleep_range is preferred over udelay

Fix the checkpatch.pl issue:
CHECK: usleep_range is preferred over udelay
Signed-off-by: default avatarSaber Rezvani <irsaber@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 020883e5
...@@ -1513,7 +1513,7 @@ static int s626_ai_insn_read(struct comedi_device *dev, ...@@ -1513,7 +1513,7 @@ static int s626_ai_insn_read(struct comedi_device *dev,
for (n = 0; n < insn->n; n++) { for (n = 0; n < insn->n; n++) {
/* Delay 10 microseconds for analog input settling. */ /* Delay 10 microseconds for analog input settling. */
udelay(10); usleep_range(10, 20);
/* Start ADC by pulsing GPIO1 low */ /* Start ADC by pulsing GPIO1 low */
gpio_image = readl(dev->mmio + S626_P_GPIO); gpio_image = readl(dev->mmio + S626_P_GPIO);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment