]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4de96e1048792cb3d727a113fb0bcc92ca39a0c
treef693058a7ca5dd58ec7ff06a319dc1e65bf0d4c6
parentda8359d72981e8bf7535c3779adeff07a3eecd37
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