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

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

Rearrange the switch () so that the actual write to the device
can be common regardless of the gpct configuration.

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