From: H Hartley Sweeten Date: Tue, 11 Mar 2014 17:03:31 +0000 (-0700) Subject: staging: comedi: jr3_pci: introduce boardinfo for the supported boards X-Git-Tag: v3.15-rc1~139^2~311 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7211806a7c8a1066aae7b0ddd200af7f071c3166;p=pandora-kernel.git 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 Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed