staging: comedi: pcmad: remove need for boardinfo in pcmad_ai_insn_read()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 5 Jun 2013 22:36:45 +0000 (15:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 19:01:34 +0000 (12:01 -0700)
commita0e82af4c5703138b21e417440ffc937b671db1e
treef67dabac2838cf0f3bc56b5cb984fc5006e10110
parentbcc01b4d852c73dbd4cc569c905b5ab1833d00d3
staging: comedi: pcmad: remove need for boardinfo in pcmad_ai_insn_read()

The const boardinfo pointer is only used in this function to work out
the value needed to convert the data to its twos complement. Use the
comedi_subdevice 'maxdata' to do this conversion and remove the 'board'
pointer.

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