staging: comedi: comedi_test: use unsigned int for waveform timing
commit21ec1bf73483f1cceb252ecf9323160fc9473f7b
authorIan Abbott <abbotti@mev.co.uk>
Tue, 27 Oct 2015 16:59:16 +0000 (27 16:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2015 23:58:36 +0000 (29 08:58 +0900)
tree1aaf0494363314c483957b67872c92709f8ee6af
parent8fa8a260d22b5a6da088afb12e3321a35f397104
staging: comedi: comedi_test: use unsigned int for waveform timing

Use `unsigned int` instead of `unsigned long` to hold the period of the
fake waveform generator and the current time within each waveform.  The
waveform period will be no more than `INT_MAX` and the current time
within the waveform (prior to the modulo operation to bring it actually
within the waveform period) will be no more than `INT_MAX + UINT_MAX /
1000`.

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