staging: comedi: me_daq: simplify analog output boardinfo
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 25 Oct 2012 22:10:52 +0000 (15:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Oct 2012 16:20:03 +0000 (09:20 -0700)
commit310239e70aab8d958088948449b7e05d6de64b9c
tree572f038e3856b67d8f3ec328ff0450dbaf8b241d
parentfa8eec60259e10a1307f8ff8cdfc6f6db898d4aa
staging: comedi: me_daq: simplify analog output boardinfo

The boards supported by this driver either have analog outputs or don't
have them. Add a new boardinfo value, 'has_ao', to indicate this.

The boards that have analog outputs always have 4, 12-bit channels. Remove
the unnecessary boardinfo and just open-code the values in the subdevice
initialization.

The boards with analog outputs also share the same output range capabilities.
Rename the comedi_lrange to make it common for all board types.

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