]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36028a9c1bf4cad38992bc84755d7474de37755a
treef67dabac2838cf0f3bc56b5cb984fc5006e10110
parent4f07db2d6a25031fbba056ed7b4a61c02d50ea31
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