]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf26823096c415d1db6885f2968c4e3a5e783d4d4
tree55f36fbb2092b6b6cf52ed0fea4257b2a184e2e1
parentd8320ef4085416c5d04fd7eb0661ef8acfb6975e
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