diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-07-16 05:31:28 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-26 02:53:22 -0400 |
commit | 1c8e11e117c28ef6b9591b489f2bbd38894ba811 (patch) | |
tree | 32c2c9decd94abd9e390ccb972acd0819ec404dd | |
parent | 36eb22e97a2b621fb707eead58ef915ab0f46e9e (diff) |
iwlwifi: s/iwl_ucode_callback/iwl_req_fw_callback
This name emphasizes more the role of the function: the
callback called when the ASYNC call to request_firmware
completes.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-drv.c | 9 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-drv.h | 6 |
2 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-drv.c b/drivers/net/wireless/iwlwifi/iwl-drv.c index cc41cfaedfbd..35a9d65664e9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/iwlwifi/iwl-drv.c | |||
@@ -194,7 +194,8 @@ static int iwl_alloc_fw_desc(struct iwl_drv *drv, struct fw_desc *desc, | |||
194 | return 0; | 194 | return 0; |
195 | } | 195 | } |
196 | 196 | ||
197 | static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context); | 197 | static void iwl_req_fw_callback(const struct firmware *ucode_raw, |
198 | void *context); | ||
198 | 199 | ||
199 | #define UCODE_EXPERIMENTAL_INDEX 100 | 200 | #define UCODE_EXPERIMENTAL_INDEX 100 |
200 | #define UCODE_EXPERIMENTAL_TAG "exp" | 201 | #define UCODE_EXPERIMENTAL_TAG "exp" |
@@ -231,7 +232,7 @@ static int iwl_request_firmware(struct iwl_drv *drv, bool first) | |||
231 | 232 | ||
232 | return request_firmware_nowait(THIS_MODULE, 1, drv->firmware_name, | 233 | return request_firmware_nowait(THIS_MODULE, 1, drv->firmware_name, |
233 | drv->trans->dev, | 234 | drv->trans->dev, |
234 | GFP_KERNEL, drv, iwl_ucode_callback); | 235 | GFP_KERNEL, drv, iwl_req_fw_callback); |
235 | } | 236 | } |
236 | 237 | ||
237 | struct fw_img_parsing { | 238 | struct fw_img_parsing { |
@@ -760,12 +761,12 @@ static int validate_sec_sizes(struct iwl_drv *drv, | |||
760 | } | 761 | } |
761 | 762 | ||
762 | /** | 763 | /** |
763 | * iwl_ucode_callback - callback when firmware was loaded | 764 | * iwl_req_fw_callback - callback when firmware was loaded |
764 | * | 765 | * |
765 | * If loaded successfully, copies the firmware into buffers | 766 | * If loaded successfully, copies the firmware into buffers |
766 | * for the card to fetch (via DMA). | 767 | * for the card to fetch (via DMA). |
767 | */ | 768 | */ |
768 | static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context) | 769 | static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context) |
769 | { | 770 | { |
770 | struct iwl_drv *drv = context; | 771 | struct iwl_drv *drv = context; |
771 | struct iwl_fw *fw = &drv->fw; | 772 | struct iwl_fw *fw = &drv->fw; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-drv.h b/drivers/net/wireless/iwlwifi/iwl-drv.h index 2cbf137b25bf..285de5f68c05 100644 --- a/drivers/net/wireless/iwlwifi/iwl-drv.h +++ b/drivers/net/wireless/iwlwifi/iwl-drv.h | |||
@@ -90,9 +90,9 @@ | |||
90 | * 4) The bus specific component configures the bus | 90 | * 4) The bus specific component configures the bus |
91 | * 5) The bus specific component calls to the drv bus agnostic part | 91 | * 5) The bus specific component calls to the drv bus agnostic part |
92 | * (iwl_drv_start) | 92 | * (iwl_drv_start) |
93 | * 6) iwl_drv_start fetches the fw ASYNC, iwl_ucode_callback | 93 | * 6) iwl_drv_start fetches the fw ASYNC, iwl_req_fw_callback |
94 | * 7) iwl_ucode_callback parses the fw file | 94 | * 7) iwl_req_fw_callback parses the fw file |
95 | * 8) iwl_ucode_callback starts the wifi implementation to matches the fw | 95 | * 8) iwl_req_fw_callback starts the wifi implementation to matches the fw |
96 | */ | 96 | */ |
97 | 97 | ||
98 | struct iwl_drv; | 98 | struct iwl_drv; |