iwlagn: combine firmware code/data
authorJohannes Berg <johannes.berg@intel.com>
Sat, 16 Apr 2011 15:29:24 +0000 (08:29 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 22 Apr 2011 17:21:18 +0000 (10:21 -0700)
commitdbf28e21ca391110e90ccad05dda79d2e2f60e0e
tree76aa45ec1cfb00c09b9cae51742c475ab821911a
parentca7966c88e44233fac113579071a6f55e00ef5ac
iwlagn: combine firmware code/data

On new hardware, ucode images always come in
pairs: code and data. Therefore, combine the
variables into an appropriate struct and use
that when both code and data are needed.

Also, combine allocation and copying so that
we have less code in total.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-ucode.c
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-agn.h
drivers/net/wireless/iwlwifi/iwl-debugfs.c
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-helpers.h