From c008fa83c416bbdcca9a49fb2d6f3fbc50daf421 Mon Sep 17 00:00:00 2001 From: Mateusz Kulikowski Date: Mon, 19 Oct 2015 22:00:19 +0200 Subject: [PATCH] staging: rtl8192e: cmdpkt: Pass data as const void* Signed-off-by: Mateusz Kulikowski Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 3 ++- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c index b151837efb12..5ff7f2d44afd 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c @@ -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; diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h b/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h index 67b3f609f0ee..7dd15d993481 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h @@ -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 -- 2.34.1