iwlagn: merge duplicated code into single place
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 6 Jun 2011 21:26:43 +0000 (14:26 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 11 Jun 2011 14:11:13 +0000 (07:11 -0700)
commit1f8bf0396ae7e63648b210fd197b1a5ab0db51bf
tree2fb91fac19f8257b7c57cf457b01e2ade714fc09
parent109a0ac5d8ed35914f5ce5c6d36244c08963c6cb
iwlagn: merge duplicated code into single place

Multiple places have similar code to construct calib header. Merge into
single inline function.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c
drivers/net/wireless/iwlwifi/iwl-agn-ucode.c
drivers/net/wireless/iwlwifi/iwl-agn.h