]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das_08: remove the cached 8254 'mode'
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 29 Jun 2012 17:59:55 +0000 (10:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:46:07 +0000 (15:46 -0700)
commit033fddc3417b3c7abe3f372d69ee3ed5dddb9462
treedf15411e7a362c9b9b4c593c4f788b78ac3c46c9
parentae7d17faa96e2252707f6450b432b8cc3408d7d5
staging: comedi: das_08: remove the cached 8254 'mode'

The driver initially sets all the cached 'mode' values for the
8254 timers to (I8254_MODE0 | I8254_BINARY). It then sets the
timers to that 'mode'. Configuring the counters with the comedi
INSN_CONFIG_SET_COUNTER_MODE updates the 'mode' and then sets
the timers to the 'mode'. The cached value is never read or
used other than for storage.

Just remove the 'mode' usage as it serves no purpose.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das08.c