]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_dio200_common: correct bound on counter mode
authorIan Abbott <abbotti@mev.co.uk>
Thu, 1 May 2014 16:38:24 +0000 (17:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:08:57 +0000 (20:08 -0400)
commitcf0edd746aff7ea7eeb2c82dfb02492b1fb49aa3
tree60f26347a76e5238c0113960c24917a7ae993f8c
parent32b5e18193f2a9c1e44c802765ee5ec39d4bf55c
staging: comedi: amplc_dio200_common: correct bound on counter mode

For the mode configured by the `INSN_CONFIG_SET_COUNTER_MODE` comedi
instruction for the counter subdevice channels supported by this module,
the upper bound should be `I8254_MODE5 | I8254_BCD` ((5 << 1) | 1)
rather than `I8254_MODE5 | I8254_BINARY` ((5 << 1) | 0).  Fix it.

Reported-by: Hartley Sweeten <HartleyS@visionengravers.com>
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/amplc_dio200_common.c