staging: comedi: das16: change boardinfo 'ai_nbits' to 'ai_maxdata'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 29 Jul 2013 20:49:21 +0000 (13:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 00:37:45 +0000 (17:37 -0700)
commit0dc7c5db134dcd216003ea1be2b7b93a5169ea26
tree36f0f9c80f02d613f11b6afb3e3ff6747980a10f
parent465e25b5e143a7de07f243d50ee0f265cc132aad
staging: comedi: das16: change boardinfo 'ai_nbits' to 'ai_maxdata'

The subdevice functions that used this boardinfo can use the subdevice
's->maxdata' value instead. Tidy up those functions.

Change the boardinfo so that the calculation is not needed during the
attach.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das16.c