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)
commitdd04e6acd828d51255fbb2d9b7b0e5b85df04f0b
treee5e301e71fb4eec49755172ae9740d3fd52cdb2b
parent1a6404a1d8497692f31808319d662c739033c491
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