]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: store card specific data in PCI device table entry
authorAvinash Patil <patila@marvell.com>
Sat, 9 Feb 2013 02:18:06 +0000 (18:18 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Feb 2013 20:34:56 +0000 (15:34 -0500)
commit42d67a3d45feb10019be69c759edbdc64ec95f2f
treee5e301e71fb4eec49755172ae9740d3fd52cdb2b
parent354d8b23038ffcaaa5cb44d0ad93aede5bf5b9a5
mwifiex: store card specific data in PCI device table entry

This patch adds support for storing PCIe device specific data
into driver_data structure of pci_device_id. When a device with
known device_id is probed, we use this driver_data to populate
card specific structres in driver.
This enables to remove device specific defines for scratch
registers, firmware name, FW download block size, etc. from
source code.

This will make addition of support for new chipsets a lot easier.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c
drivers/net/wireless/mwifiex/pcie.h