]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: aio_aio12_8: refactor boardininfo
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 12 Oct 2015 19:16:36 +0000 (12:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 17:26:06 +0000 (10:26 -0700)
commitd4baf5a57deb288fe8c955d8b5c2fa20032d03f1
tree32ea05001e809851f9248c9e3cbe52e1dc0590c3
parent4b3a949121e66b2f5cfc2bc4559e6dddaa0dcaa1
staging: comedi: aio_aio12_8: refactor boardininfo

This driver supports three board types with these differences:
  104-AIO12-8 - eight 12-bit analog in, four 12-bit analog out
  104-AI12-8  - eight 12-bit analog in
  104-AO12-4  - four 12-bit analog out

Convert the boardinfo 'ai_nchan' and 'ao_nchan' into bit-field
flags 'has_ai' and 'has_ao' so save a bit of space.

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