staging: comedi: amplc_pc236: add helper functions to check bus type
authorIan Abbott <abbotti@mev.co.uk>
Thu, 16 Aug 2012 11:24:08 +0000 (12:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 18:35:44 +0000 (11:35 -0700)
commit409861ff73c1bde35993da3d2b976ec8b9c107ea
tree8de110b4e5dee06d0af9d6886e23d3a3c2219883
parent87f8b20dce1fda9cf7c57f669415fe6918b19fa7
staging: comedi: amplc_pc236: add helper functions to check bus type

Add inline helper function is_isa_board(board) to check if the driver
supports ISA boards and this is an ISA board, and is_pci_board(board) to
check if the driver supports PCI boards and this is a PCI board.

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