staging: rtl8192e: cmdpkt: Pass data as const void*
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Mon, 19 Oct 2015 20:00:19 +0000 (22:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:23:13 +0000 (19:23 -0700)
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

index b151837efb124992e931620617c48251ac94fa2d..5ff7f2d44afd89098b71922abebc531cb63ac7c0 100644 (file)
@@ -17,7 +17,8 @@
 #include "r8192E_hw.h"
 #include "r8192E_cmdpkt.h"
 
-bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, u8 *data, u32 len)
+bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, const void *data,
+                        u32 len)
 {
 
        bool                            rt_status = true;
index 67b3f609f0ee08850786fee7737a07790baf824d..7dd15d9934816362c240ac5a2389a04ea5deeb56 100644 (file)
@@ -15,5 +15,6 @@
 #ifndef R819XUSB_CMDPKT_H
 #define R819XUSB_CMDPKT_H
 
-bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, u8 *data, u32 len);
+bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, const void *data,
+                        u32 len);
 #endif