mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 10:07:52 +00: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 <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>