Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: comedi: ni_pcimio: add routes for NI PCIe-6251 and PCIe-6259

We do not currently provide routing information for NI PCIe-6251 and
PCI-6259 boards, but they are functionally identical to the PCI-6251 and
PCI-6259 boards and can share their routing information. (This has been
confirmed for the PCIe-6251 by Éric Piel, using the "NI MAX" software
for Windows. It is hoped that it applies to PCIe-6259, but has not yet
been checked due to lack of hardware.) Initialize the `alt_route_name`
member of the board information for PCIe-6251 and PCIe-6259 to allow
them to make use of the routing information provided for PCI-6251 and
PCI-6259 respectively.

Cc: Éric Piel <piel@delmic.com>
Cc: Spencer E. Olson <olsonse@umich.edu>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20200207151400.272678-5-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ian Abbott and committed by
Greg Kroah-Hartman
26a99c06 9bfd8bc5

+2
+2
drivers/staging/comedi/drivers/ni_pcimio.c
··· 888 888 }, 889 889 [BOARD_PCIE6251] = { 890 890 .name = "pcie-6251", 891 + .alt_route_name = "pci-6251", 891 892 .n_adchan = 16, 892 893 .ai_maxdata = 0xffff, 893 894 .ai_fifo_depth = 4095, ··· 977 976 }, 978 977 [BOARD_PCIE6259] = { 979 978 .name = "pcie-6259", 979 + .alt_route_name = "pci-6259", 980 980 .n_adchan = 32, 981 981 .ai_maxdata = 0xffff, 982 982 .ai_fifo_depth = 4095,