From: H Hartley Sweeten Date: Wed, 27 Jun 2012 21:55:19 +0000 (-0700) Subject: staging: comedi: adl_pci6208: refactor pci6208_find_device() X-Git-Tag: v3.6-rc1~100^2~473 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cde6f08a5e28e2f0c08ecadd98465bfb48e01472;p=pandora-kernel.git staging: comedi: adl_pci6208: refactor pci6208_find_device() Make the "find pci device" functions consistent in the comedi drivers. Hopefully well be able to move it into the core... Refactor the "find pci device" function to return a pointer to the found struct pci_dev instead of an error code. Also, change some of the tests to reduce the indent level of the code. Pass the struct comedi_devconfig pointer to the function instead of the bus/slot numbers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed