]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
iwlwifi: move iwl_cmd_echo_test
authorJohannes Berg <johannes.berg@intel.com>
Mon, 2 Apr 2012 13:15:58 +0000 (15:15 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 23 Apr 2012 21:23:17 +0000 (14:23 -0700)
The function can be static with the only user.

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-core.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-debugfs.c

index 2a09678ef18c3f292a33ce428ddfeaa78ac9b766..a476397d5ab103ca5bf4439357048c6b5b02937f 100644 (file)
@@ -275,20 +275,3 @@ void iwl_update_stats(struct iwl_priv *priv, bool is_tx, __le16 fc, u16 len)
        }
 }
 #endif
-
-int iwl_cmd_echo_test(struct iwl_priv *priv)
-{
-       int ret;
-       struct iwl_host_cmd cmd = {
-               .id = REPLY_ECHO,
-               .len = { 0 },
-               .flags = CMD_SYNC,
-       };
-
-       ret = iwl_dvm_send_cmd(priv, &cmd);
-       if (ret)
-               IWL_ERR(priv, "echo testing fail: 0X%x\n", ret);
-       else
-               IWL_DEBUG_INFO(priv, "echo testing pass\n");
-       return ret;
-}
index de7f6cd4100251c35ed870daf810f3dd8bddc641..3ec011bd879e087a0cc27fbdaf90516c8079c3db 100644 (file)
@@ -76,7 +76,6 @@ struct iwl_cmd;
  *   L i b                 *
  ***************************/
 
-int iwl_cmd_echo_test(struct iwl_priv *priv);
 #ifdef CONFIG_IWLWIFI_DEBUGFS
 int iwl_alloc_traffic_mem(struct iwl_priv *priv);
 void iwl_free_traffic_mem(struct iwl_priv *priv);
index 11ca48ea6b8f1fd20be6c49c7e5f9f1264e033dc..f4a9910b5e75ce6c5a885cf73630810fbab2243f 100644 (file)
@@ -2383,6 +2383,23 @@ static ssize_t iwl_dbgfs_protection_mode_write(struct file *file,
        return count;
 }
 
+static int iwl_cmd_echo_test(struct iwl_priv *priv)
+{
+       int ret;
+       struct iwl_host_cmd cmd = {
+               .id = REPLY_ECHO,
+               .len = { 0 },
+               .flags = CMD_SYNC,
+       };
+
+       ret = iwl_dvm_send_cmd(priv, &cmd);
+       if (ret)
+               IWL_ERR(priv, "echo testing fail: 0X%x\n", ret);
+       else
+               IWL_DEBUG_INFO(priv, "echo testing pass\n");
+       return ret;
+}
+
 static ssize_t iwl_dbgfs_echo_test_write(struct file *file,
                                        const char __user *user_buf,
                                        size_t count, loff_t *ppos)