staging: comedi: cb_pcidas: cleanup ai_config_insn()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 27 Jun 2012 01:01:05 +0000 (18:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:23:52 +0000 (15:23 -0700)
commitf3c34b2fc6ccc36f171633fa86b3d59a36792c25
tree0ee0743b53845c261119d6f77adf7955b4021af5
parent8f608fc8eefc9bff17a7139801eb4b4f571f262d
staging: comedi: cb_pcidas: cleanup ai_config_insn()

Absorb the helper function ai_config_calibration_source() into
ai_config_insn() and remove the static const variable that
was in the helper function.

Return an error code (-EINVAL) when appropriate and the number
of data values used (insn->n) for success.

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