Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);