staging: comedi: dt9812: move shadow values to private data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 21:28:26 +0000 (14:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:25:59 +0000 (16:25 -0700)
commit135a0009a5ff601e2c68dfd6b280f42e43711c23
tree1a2a25d9d2f1fb501e33bf3eda16a1ca8e34a99c
parent9e8917b3828dbb05874a54dd36779f11a6ea56fa
staging: comedi: dt9812: move shadow values to private data

The analog and digital out shadow values are only used by the
comedi_device. Move the variables from the usb private data to
the comedi private data. Also, rename them to something a bit
shorter.

Move the initialization of the shadow values from the usb probe
to the comedi attach. Also rename the flag used to determine the
initial value from 'range_2_5' to 'is_unipolar'.

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