diff options
| author | Ian Abbott <[email protected]> | 2020-02-07 15:13:57 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-02-10 10:25:06 -0800 |
| commit | 075a329591540affcc32af0da09abd54549e1659 (patch) | |
| tree | e96e2bfc39f46958a852a6c3c96ace6ea21236bb /tools/perf/scripts/python/bin | |
| parent | 0e3ee7f10af9b3c6994c530048d5115d3c67c801 (diff) | |
staging: comedi: ni_routes: Refactor ni_find_valid_routes()
Split out the loops in `ni_find_valid_routes()` into separate functions:
* ni_find_route_values(device_family) to find the list of route values
for a device family (e.g "ni-mseries"); and
* ni_find_valid_routes(board_name) to find the set of valid routes for a
board name.
The functions above return `NULL` if the information is not found (as we
do not currently have the routing information available for all
supported boards).
Cc: Éric Piel <[email protected]>
Cc: Spencer E. Olson <[email protected]>
Signed-off-by: Ian Abbott <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions