linux-stable/drivers/staging/comedi
Ian Abbott cda2315000 staging: comedi: daqboard2000: prefer usleep_range()
The checkpatch.pl warns about two `udelay(x)` calls, one of 100
microseconds, and one of 10 microseconds.  The 100 microseconds one is
used when waiting for FPGA to become ready to accept firmware, and is
not that critical, so replace it with a call to `usleep_range(100,
1000)`.  The 10 microseconds one is called as each 16-bit word of
firmware data is written.  Replace it with a fairly tight
`usleep_range(10, 20)` to avoid slowing down firmware loading too much.
The firmware is fairly short, so this would only slow it down firmware
loading by about 20 milliseconds or so.

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>
2016-06-17 20:57:54 -07:00
..
drivers staging: comedi: daqboard2000: prefer usleep_range() 2016-06-17 20:57:54 -07:00
kcomedilib
comedi.h staging:comedi:Use unsigned int instead of unsigned 2016-06-17 20:43:07 -07:00
comedi_buf.c Staging: comedi: comedi_buf: Replace 'unsigned' with 'unsigned int' 2016-03-28 07:30:36 -07:00
comedi_compat32.c
comedi_compat32.h
comedi_fops.c Staging: comedi: comedi_fops.c: Fixed coding style issue 2016-06-17 20:52:29 -07:00
comedi_internal.h
comedi_pci.c
comedi_pci.h
comedi_pcmcia.c
comedi_pcmcia.h STAGING: COMEDI: Wrap line over 80 characters 2016-02-07 18:38:37 -08:00
comedi_usb.c
comedi_usb.h
comedidev.h Staging: comedi: Fix 'unsigned' warning style 2016-03-29 12:45:23 -07:00
comedilib.h staging: comedi: comedilib.h: Coding style warning fix for block comments 2015-12-21 16:01:12 -08:00
drivers.c staging: comedi: drivers: fix possible bug in comedi_handle_events() 2016-03-30 21:04:53 -07:00
Kconfig
Makefile
proc.c
range.c
TODO comedi: note a coverity discovered hole that needs fixing 2016-03-05 14:56:55 -08:00