mwifiex: avoid exporting mwifiex_send_cmd
authorGanapathi Bhat <gbhat@marvell.com>
Thu, 24 May 2018 11:06:28 +0000 (16:36 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 May 2018 07:22:01 +0000 (10:22 +0300)
This is a follow-up patch for commit 21c5c83ce833
("mwifiex: support sysfs initiated device coredump").

Let us avoid exporting mwifiex_send_cmd and instead use a utility
function mwifiex_fw_dump_event to achive the work.

Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cmdevt.c
drivers/net/wireless/marvell/mwifiex/main.h
drivers/net/wireless/marvell/mwifiex/usb.c
drivers/net/wireless/marvell/mwifiex/util.c

index 8be1e69657a74993a443fe2870c4ae421d97b0fc..9cfcdf6bec52c1b24fe67001b77a369a5f7a7ad2 100644 (file)
@@ -674,7 +674,6 @@ int mwifiex_send_cmd(struct mwifiex_private *priv, u16 cmd_no,
 
        return ret;
 }
-EXPORT_SYMBOL_GPL(mwifiex_send_cmd);
 
 /*
  * This function queues a command to the command pending queue.
index 8ae74ed78805f8b367fd05f398e8a11964436d94..69ac0a22c28c4c8ca99ad15e40a18994401645dc 100644 (file)
@@ -1691,6 +1691,7 @@ void mwifiex_drv_info_dump(struct mwifiex_adapter *adapter);
 void mwifiex_prepare_fw_dump_info(struct mwifiex_adapter *adapter);
 void mwifiex_upload_device_dump(struct mwifiex_adapter *adapter);
 void *mwifiex_alloc_dma_align_buf(int rx_len, gfp_t flags);
+void mwifiex_fw_dump_event(struct mwifiex_private *priv);
 void mwifiex_queue_main_work(struct mwifiex_adapter *adapter);
 int mwifiex_get_wakeup_reason(struct mwifiex_private *priv, u16 action,
                              int cmd_type,
index 7aa39878ce496318337dbdb8245af34498df5d44..bc475b83bb155f1be865cf77cba63ab0c3cf322c 100644 (file)
@@ -658,9 +658,8 @@ static void mwifiex_usb_coredump(struct device *dev)
        struct usb_interface *intf = to_usb_interface(dev);
        struct usb_card_rec *card = usb_get_intfdata(intf);
 
-       mwifiex_send_cmd(mwifiex_get_priv(card->adapter, MWIFIEX_BSS_ROLE_ANY),
-                        HostCmd_CMD_FW_DUMP_EVENT, HostCmd_ACT_GEN_SET, 0,
-                        NULL, true);
+       mwifiex_fw_dump_event(mwifiex_get_priv(card->adapter,
+                                              MWIFIEX_BSS_ROLE_ANY));
 }
 
 static struct usb_driver mwifiex_usb_driver = {
index 51ccf10f44132eeff9bdc9c347664b37f0e93a22..6dd212898117697f53fad22b20eb831ee6de6ab0 100644 (file)
@@ -757,3 +757,10 @@ void *mwifiex_alloc_dma_align_buf(int rx_len, gfp_t flags)
        return skb;
 }
 EXPORT_SYMBOL_GPL(mwifiex_alloc_dma_align_buf);
+
+void mwifiex_fw_dump_event(struct mwifiex_private *priv)
+{
+       mwifiex_send_cmd(priv, HostCmd_CMD_FW_DUMP_EVENT, HostCmd_ACT_GEN_SET,
+                        0, NULL, true);
+}
+EXPORT_SYMBOL_GPL(mwifiex_fw_dump_event);