mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-06 13:13:06 +09:00
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 commit347e244884("staging: comedi: tio: implement global tio/ctr routing") when setting/reading registers for counter terminals. Fixes:347e244884("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>