diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2014-08-04 15:14:28 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-16 23:23:09 +0400 |
| commit | 930771fb905be0e1c09a2fe84c17b578d7a0fdd6 (patch) | |
| tree | 2186d10cc61fe60922817386c97630a5fb510c46 /include/linux/raid | |
| parent | 176835357e7d468987d6ce3663241fac7677b83e (diff) | |
| download | linux-930771fb905be0e1c09a2fe84c17b578d7a0fdd6.tar.xz | |
staging: comedi: amplc_pci224: put board indices in PCI driver_data
The `driver_data` member value from the matched entry of the PCI module
device table `amplc_pci224_pci_table[]` is passed through to our comedi
"auto_attach" handler, `pci224_auto_attach()`. Use that to index
directly into our static board data array `pci224_boards[]` instead of
calling `pci224_find_pci_board()` to search for the entry matching the
PCI device ID. That function can be removed. The `devid` and `model`
members of `struct pci224_board` are no longer needed either and can be
removed.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/raid')
0 files changed, 0 insertions, 0 deletions
