staging: comedi: clarify/unify macros for NI macro-defined terminals
authorSpencer E. Olson <olsonse@umich.edu>
Wed, 24 Oct 2018 14:33:40 +0000 (08:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Nov 2018 12:08:28 +0000 (13:08 +0100)
commit4dc2a3cd27856531cf92762fea2eb9468efe552f
tree349acde2caee986d1f39e7f9d2db3d9fc696c757
parentb7c56d7bfe834904d9d332e0cfbf929b75976f8a
staging: comedi: clarify/unify macros for NI macro-defined terminals

Uses a single macro to define multiple macros that represent a series of
terminals for NI devices.  This patch also redefines NI_MAX_COUNTERS as the
maximum number of counters possible on NI devices (instead of the maximum
index of the counters).  This was a little confusing and caused a bug in
commit 347e244884c3b ("staging: comedi: tio: implement global tio/ctr routing")
when setting/reading registers for counter terminals.

Fixes: 347e244884c3b ("staging: comedi: tio: implement global tio/ctr routing")
Signed-off-by: Spencer E. Olson <olsonse@umich.edu>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi.h