staging: comedi: das08: Support multiple PCI card types in future
authorIan Abbott <abbotti@mev.co.uk>
Thu, 24 May 2012 16:27:17 +0000 (17:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:39:39 +0000 (20:39 -0700)
commitf86b0d7da3ab15f73723d98f6685d6d8ef48c166
tree55f36fbb2092b6b6cf52ed0fea4257b2a184e2e1
parent282f3528e21cd35f85e8ea3cb7dbcd285a6e5379
staging: comedi: das08: Support multiple PCI card types in future

Rename the existing board entry named "das08" for the PCI-DAS08 board to
"pci-das08".  Add a new wildcard board entry called "das08" that will
match any supported PCI board.  If 'dev->board_ptr' points to the
wildcard board entry in the ->attach() routine, it will be replaced with
a supported PCI board entry if there are any (taking into account the
bus and slot specified by the device config options passed in to the
function).

Split the code that finds a matching PCI device into a new function
das08_find_pci().

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das08.c