Skip to contentSkip to conversation

staging: wilc1000: remove WILC_Sint8

PATCH Superseded Chaehyun Lim 1 participant 1 message Jun 9, 2015

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 5/8 staging: wilc1000: remove WILC_Sint8

Use s8 in stead of WILC_Sint8.

---
V2 : remove the spaces on the subject
Capitalize the name on the From and the Signed-off-by

 drivers/staging/wilc1000/coreconfigurator.c |  18 ++--
 drivers/staging/wilc1000/coreconfigurator.h |   8 +-
 drivers/staging/wilc1000/host_interface.c   | 148 ++++++++++++++--------------
 drivers/staging/wilc1000/host_interface.h   |  12 +--
 drivers/staging/wilc1000/linux_wlan.c       |   2 +-
 drivers/staging/wilc1000/wilc_oswrapper.h   |   1 -
 6 files changed, 94 insertions(+), 95 deletions(-)
drivers/staging/wilc1000/coreconfigurator.c +9 -9
index cf21466..50d184c 100644
@@ -157,7 +157,7 @@ typedef struct {
 /*****************************************************************************/
 /* Extern Function Declarations                                              */
 /*****************************************************************************/
-extern WILC_Sint32 SendRawPacket(WILC_Sint8 *ps8Packet, WILC_Sint32 s32PacketLen);
+extern WILC_Sint32 SendRawPacket(s8 *ps8Packet, WILC_Sint32 s32PacketLen);
 extern void NetworkInfoReceived(u8 *pu8Buffer, u32 u32Length);
 extern void GnrlAsyncInfoReceived(u8 *pu8Buffer, u32 u32Length);
 extern void host_int_ScanCompleteReceived(u8 *pu8Buffer, u32 u32Length);
@@ -167,7 +167,7 @@ extern void host_int_ScanCompleteReceived(u8 *pu8Buffer, u32 u32Length);
 static WILC_SemaphoreHandle SemHandleSendPkt;
 static WILC_SemaphoreHandle SemHandlePktResp;
 
-static WILC_Sint8 *gps8ConfigPacket;
+static s8 *gps8ConfigPacket;
 
 static tstrConfigPktInfo gstrConfigPktInfo;
 
@@ -685,7 +685,7 @@ WILC_Sint32 CoreConfiguratorInit(void)
 	strSemPktRespAttrs.u32InitCount = 0;
 	WILC_SemaphoreCreate(&SemHandlePktResp, &strSemPktRespAttrs);
 
-	gps8ConfigPacket = (WILC_Sint8 *)WILC_MALLOC(MAX_PACKET_BUFF_SIZE);
+	gps8ConfigPacket = (s8 *)WILC_MALLOC(MAX_PACKET_BUFF_SIZE);
 	if (gps8ConfigPacket = NULL) {
 		PRINT_ER("failed in gps8ConfigPacket allocation \n");
 		s32Error = WILC_NO_MEM;
@@ -1104,7 +1104,7 @@ WILC_Sint32 DeallocateSurveyResults(wid_site_survey_reslts_s *pstrSurveyResults)
 /*****************************************************************************/
 
 void ProcessCharWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
-		    tstrWID *pstrWID, WILC_Sint8 *ps8WidVal)
+		    tstrWID *pstrWID, s8 *ps8WidVal)
 {
 	u8 *pu8val = (u8 *)ps8WidVal;
 	u8 u8val = 0;
@@ -1158,7 +1158,7 @@ void ProcessCharWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
 /*****************************************************************************/
 
 void ProcessShortWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
-		     tstrWID *pstrWID, WILC_Sint8 *ps8WidVal)
+		     tstrWID *pstrWID, s8 *ps8WidVal)
 {
 	u16 *pu16val = (u16 *)ps8WidVal;
 	u16 u16val = 0;
@@ -1213,7 +1213,7 @@ void ProcessShortWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
 /*****************************************************************************/
 
 void ProcessIntWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
-		   tstrWID *pstrWID, WILC_Sint8 *ps8WidVal)
+		   tstrWID *pstrWID, s8 *ps8WidVal)
 {
 	u32 *pu32val = (u32 *)ps8WidVal;
 	u32 u32val = 0;
@@ -1558,7 +1558,7 @@ WILC_Sint32 further_process_response(u8 *resp,
 		u16 *pu16val = (u16 *)(pstrWIDresult->ps8WidVal);
 		cfg_sht = MAKE_WORD16(resp[idx], resp[idx + 1]);
 		/*Set local copy of WID*/
-		/* pstrWIDresult->ps8WidVal = (WILC_Sint8*)(WILC_Sint32)cfg_sht; */
+		/* pstrWIDresult->ps8WidVal = (s8*)(WILC_Sint32)cfg_sht; */
 		*pu16val = cfg_sht;
 		break;
 	}
@@ -1571,7 +1571,7 @@ WILC_Sint32 further_process_response(u8 *resp,
 				MAKE_WORD16(resp[idx + 2], resp[idx + 3])
 				);
 		/*Set local copy of WID*/
-		/* pstrWIDresult->ps8WidVal = (WILC_Sint8*)cfg_int; */
+		/* pstrWIDresult->ps8WidVal = (s8*)cfg_int; */
 		*pu32val = cfg_int;
 		break;
 	}
@@ -1864,7 +1864,7 @@ WILC_Sint32 CreatePacketHeader(WILC_Char *pcpacket, WILC_Sint32 *ps32PacketLengt
  *  @version	1.0
  */
 
-WILC_Sint32 CreateConfigPacket(WILC_Sint8 *ps8packet, WILC_Sint32 *ps32PacketLength,
+WILC_Sint32 CreateConfigPacket(s8 *ps8packet, WILC_Sint32 *ps32PacketLength,
 			       tstrWID *pstrWIDs, u32 u32WIDsCount)
 {
 	WILC_Sint32 s32Error = WILC_SUCCESS;
drivers/staging/wilc1000/coreconfigurator.h +4 -4
index 969fcb7..df354cd 100644
@@ -397,18 +397,18 @@ typedef struct {
 	u16 u16WIDid;
 	tenuWIDtype enuWIDtype;
 	WILC_Sint32 s32ValueSize;
-	WILC_Sint8      *ps8WidVal;
+	s8      *ps8WidVal;
 
 } tstrWID;
 
 typedef struct {
 	u8 u8Full;
 	u8 u8Index;
-	WILC_Sint8 as8RSSI[NUM_RSSI];
+	s8 as8RSSI[NUM_RSSI];
 } tstrRSSI;
 /* This structure is used to support parsing of the received 'N' message */
 typedef struct {
-	WILC_Sint8 s8rssi;
+	s8 s8rssi;
 	u16 u16CapInfo;
 	u8 au8ssid[MAX_SSID_LEN];
 	u8 u8SsidLen;
@@ -490,7 +490,7 @@ extern WILC_Sint32 ParseSurveyResults(u8 ppu8RcvdSiteSurveyResults[][MAX_SURVEY_
 extern WILC_Sint32 DeallocateSurveyResults(wid_site_survey_reslts_s *pstrSurveyResults);
 #endif
 
-extern WILC_Sint32 SendRawPacket(WILC_Sint8 *pspacket, WILC_Sint32 s32PacketLen);
+extern WILC_Sint32 SendRawPacket(s8 *pspacket, WILC_Sint32 s32PacketLen);
 extern void NetworkInfoReceived(u8 *pu8Buffer, u32 u32Length);
 void GnrlAsyncInfoReceived(u8 *pu8Buffer, u32 u32Length);
 void host_int_ScanCompleteReceived(u8 *pu8Buffer, u32 u32Length);
drivers/staging/wilc1000/host_interface.c +74 -74

564 lines not on this page · raw message

drivers/staging/wilc1000/host_interface.h +6 -6
index 864fa55..3294268 100644
@@ -128,12 +128,12 @@ typedef enum {WID_CHAR  = 0,
 typedef struct {
 	u16 cfg_wid;
 	WID_TYPE_T cfg_type;
-	WILC_Sint8     *pu8Para;
+	s8     *pu8Para;
 } cfg_param_t;
 
 typedef struct _tstrStatistics {
 	u8 u8LinkSpeed;
-	WILC_Sint8 s8RSSI;
+	s8 s8RSSI;
 	u32 u32TxCount;
 	u32 u32RxCount;
 	u32 u32TxFailureCount;
@@ -237,7 +237,7 @@ typedef enum {
 
 typedef struct {
 	u8 au8bssid[6];
-	WILC_Sint8 s8rssi;
+	s8 s8rssi;
 } tstrFoundNetworkInfo;
 
 typedef enum {SCAN_EVENT_NETWORK_FOUND  = 0,
@@ -989,8 +989,8 @@ WILC_Sint32 host_int_get_host_chnl_num(WILC_WFIDrvHandle hWFIDrv, u8 *pu8ChNo);
  *  @date		8 March 2012
  *  @version		1.0
  */
-WILC_Sint32 host_int_get_rssi(WILC_WFIDrvHandle hWFIDrv, WILC_Sint8 *ps8Rssi);
-WILC_Sint32 host_int_get_link_speed(WILC_WFIDrvHandle hWFIDrv, WILC_Sint8 *ps8lnkspd);
+WILC_Sint32 host_int_get_rssi(WILC_WFIDrvHandle hWFIDrv, s8 *ps8Rssi);
+WILC_Sint32 host_int_get_link_speed(WILC_WFIDrvHandle hWFIDrv, s8 *ps8lnkspd);
 /**
  *  @brief              scans a set of channels
  *  @details
@@ -1074,7 +1074,7 @@ void host_int_send_join_leave_info_to_host
  *  @version		1.0
  */
 void host_int_send_network_info_to_host
-	(u8 *macStartAddress, u16 u16RxFrameLen, WILC_Sint8 s8Rssi);
+	(u8 *macStartAddress, u16 u16RxFrameLen, s8 s8Rssi);
 
 /**
  *  @brief              host interface initialization function
drivers/staging/wilc1000/linux_wlan.c +1 -1
index e1ef37f..e48b278 100644
@@ -2462,7 +2462,7 @@ int mac_ioctl(struct net_device *ndev, struct ifreq *req, int cmd)
 {
 
 	u8 *buff = NULL;
-	WILC_Sint8 rssi;
+	s8 rssi;
 	u32 size = 0, length = 0;
 	perInterface_wlan_t *nic;
 	struct WILC_WFI_priv *priv;
drivers/staging/wilc1000/wilc_oswrapper.h +0 -1
index 1060559..fc09416 100644
@@ -14,7 +14,6 @@
 #define WILC_OSW_INTERFACE_VER 2
 
 /* Integer Types */
-typedef signed char WILC_Sint8;
 typedef signed short WILC_Sint16;
 typedef signed int WILC_Sint32;
 typedef signed long long WILC_Sint64;
Signature · 1 line
1.9.1