staging: rtl8192e: cmdpkt: Reorder arguments
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Mon, 19 Oct 2015 20:00:18 +0000 (22:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:23:13 +0000 (19:23 -0700)
Use send_cmd_pkt(dev, type, data , size) order to avoid confusion

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c
drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c

index e602604867af4ace048475842d1ad8d8daffa027..b151837efb124992e931620617c48251ac94fa2d 100644 (file)
@@ -17,7 +17,7 @@
 #include "r8192E_hw.h"
 #include "r8192E_cmdpkt.h"
 
-bool rtl92e_send_cmd_pkt(struct net_device *dev, u8 *data, u32 type, u32 len)
+bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, u8 *data, u32 len)
 {
 
        bool                            rt_status = true;
index 1acf09933e8e90cc4faa8617e5d5d2fb84e870ea..67b3f609f0ee08850786fee7737a07790baf824d 100644 (file)
@@ -15,5 +15,5 @@
 #ifndef R819XUSB_CMDPKT_H
 #define R819XUSB_CMDPKT_H
 
-bool rtl92e_send_cmd_pkt(struct net_device *dev, u8 *data, u32 type, u32 len);
+bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, u8 *data, u32 len);
 #endif
index c993f2039a2417f554523dab6489856c4cca6d9c..ef03242113be12e3bdebbbf9668f3704dd8a54c8 100644 (file)
@@ -655,7 +655,7 @@ static void _rtl92e_dm_tx_power_tracking_callback_tssi(struct net_device *dev)
                tx_cmd.Op               = TXCMD_SET_TX_PWR_TRACKING;
                tx_cmd.Length   = 4;
                tx_cmd.Value            = Value;
-               rtl92e_send_cmd_pkt(dev, (u8 *)&tx_cmd, DESC_PACKET_TYPE_NORMAL,
+               rtl92e_send_cmd_pkt(dev, DESC_PACKET_TYPE_NORMAL, (u8 *)&tx_cmd,
                                    sizeof(struct dcmd_txcmd));
                mdelay(1);
                for (i = 0; i <= 30; i++) {