staging: comedi: jr3_pci: introduce boardinfo for the supported boards
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 11 Mar 2014 17:03:31 +0000 (10:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 19:38:53 +0000 (12:38 -0700)
commit7211806a7c8a1066aae7b0ddd200af7f071c3166
treeb1c47863de2bd8dd82049a9eba9f488cb1dae660
parent16a86abea711d9ea5893cd60a6cd608393f9698c
staging: comedi: jr3_pci: introduce boardinfo for the supported boards

Create an enum for the boards supported by this driver and pass that enum in
the pci_driver id_table as the driver_data.

Introduce a boardinfo struct to hold the board specific data for the boards
supported by this driver. Use the boardinfo when attaching to the driver
instead of using the pcidev->device and the switch.

Since the PCI device ids are now only used in the id_table, remove the
defines and open code the device ids.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/jr3_pci.c