linux/drivers/staging/comedi
H Hartley Sweeten 5c67df8b98 staging: comedi: adl_pci6208: fix the ao_readback variable size
The 'ao_readback' variable in the private data struct is used to
cache the last value written to the analog output DAC channels.
The PCI-6208 has 8 analog output channels but the variable only
allowed space to cache 2 values.

Since the PCI-6216 board could be supported by this driver and
it has 16 analog outputs, create a define for the maximum number
of channels and use that to set the size of 'ao_readback'.

For now, set the max to 8 to save space since the PCI-6216 is
not currently supported.

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>
2012-07-06 15:40:06 -07:00
..
drivers staging: comedi: adl_pci6208: fix the ao_readback variable size 2012-07-06 15:40:06 -07:00
kcomedilib
comedi.h staging: comedi: COMEDI_CB_EOA is also used to report end-of-output. 2012-04-18 16:37:06 -07:00
comedi_compat32.c staging: comedi: shrink comedi_compat32.h 2012-06-20 12:57:43 -07:00
comedi_compat32.h staging: comedi: shrink comedi_compat32.h 2012-06-20 12:57:43 -07:00
comedi_fops.c staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
comedi_internal.h staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
comedidev.h staging: comedi: remove CONFIG_COMEDI_PCI define 2012-06-20 13:00:42 -07:00
comedilib.h
drivers.c staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
Kconfig staging: comedi: Move COMEDI_MITE and COMEDI_NI_TIOCMD 2012-06-26 15:10:57 -07:00
Makefile Staging: comedi: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:52 -07:00
proc.c staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
range.c staging: comedi: rename internal.h to comedi_internal.h 2012-06-20 12:56:54 -07:00
TODO