staging: comedi: adl_pci6208: cleanup pci6208_ao_winsn()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 27 Jun 2012 22:06:14 +0000 (15:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:40:06 +0000 (15:40 -0700)
commit8366404bf1c034d902af06a6a6d88fe77a2cc7fb
treef693058a7ca5dd58ec7ff06a319dc1e65bf0d4c6
parent5c67df8b98316fbfede8d4d6bac64d52d4327357
staging: comedi: adl_pci6208: cleanup pci6208_ao_winsn()

Use the defines for the register map to make the code a bit
clearer. Shorten or rename some of the local variables for
the same reason.

Only the last value written to the DAC needs to be cached in
the ao_readback variable.

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/adl_pci6208.c
This page took 0.040849 seconds and 5 git commands to generate.