staging: comedi: s526: cleanup s526_gpct_insn_config()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 19 Sep 2012 22:12:17 +0000 (15:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Sep 2012 16:19:44 +0000 (09:19 -0700)
commit5a5614cb669f9f99bb3e983b3c4987a1eaef852b
tree32b18a04571c64af3728f9295a20603aa67e6fff
parent2a29edf69807a43ad7594554cea4def755443103
staging: comedi: s526: cleanup s526_gpct_insn_config()

Use a local variable for the iobase of the channel being configured.
This makes the outw() calls a bit cleaner.

Remove the unnecessary casting of the values being written to
the channel registers.

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