diff options
| author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-06-27 14:55:19 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-06 15:40:02 -0700 |
| commit | cde6f08a5e28e2f0c08ecadd98465bfb48e01472 (patch) | |
| tree | 591509ff7bfe23c6d52672bd044fd40ba5985dd0 /tools/perf/scripts/python/netdev-times.py | |
| parent | 949a18d39d75e92f516d562befe5447d368ab67d (diff) | |
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 <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
