Skip to contentSkip to conversation

Staging: vt6656: Remove PUINT from ttype.h

PATCH In review Roel Van Nyen 2 participants 3 messages Jul 12, 2010 – Jul 30, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: vt6656: Remove PUINT from ttype.h

Remove PUINT from ttype.h and change it to unsigned int *

Signed-of-by Roel Van Nyen <[email protected]>

---
 drivers/staging/vt6656/bssdb.c |    4 ++--
 drivers/staging/vt6656/bssdb.h |    4 ++--
 drivers/staging/vt6656/dpc.c   |    8 ++++----
 drivers/staging/vt6656/ttype.h |    1 -
 4 files changed, 8 insertions(+), 9 deletions(-)
drivers/staging/vt6656/bssdb.c +2 -2
index 830dd23..a417b7e 100644
@@ -736,7 +736,7 @@ BOOL BSSbUpdateToBSSList(void *hDeviceContext,
 
 BOOL BSSbIsSTAInNodeDB(void *hDeviceContext,
 		       PBYTE abyDstAddr,
-		       PUINT puNodeIndex)
+		       unsigned int * puNodeIndex)
 {
     PSDevice        pDevice = (PSDevice)hDeviceContext;
     PSMgmtObject    pMgmt = &(pDevice->sMgmtObj);
@@ -768,7 +768,7 @@ BOOL BSSbIsSTAInNodeDB(void *hDeviceContext,
  *    None
  *
 -*/
-void BSSvCreateOneNode(void *hDeviceContext, PUINT puNodeIndex)
+void BSSvCreateOneNode(void *hDeviceContext, unsigned int * puNodeIndex)
 {
 
     PSDevice     pDevice = (PSDevice)hDeviceContext;
drivers/staging/vt6656/bssdb.h +2 -2
index c3aaefe..e016fe7 100644
@@ -278,9 +278,9 @@ BOOL BSSbUpdateToBSSList(void *hDeviceContext,
 
 BOOL BSSbIsSTAInNodeDB(void *hDeviceContext,
 		       PBYTE abyDstAddr,
-		       PUINT puNodeIndex);
+		       unsigned int * puNodeIndex);
 
-void BSSvCreateOneNode(void *hDeviceContext, PUINT puNodeIndex);
+void BSSvCreateOneNode(void *hDeviceContext, unsigned int * puNodeIndex);
 
 void BSSvUpdateAPNode(void *hDeviceContext,
 		      PWORD pwCapInfo,
drivers/staging/vt6656/dpc.c +4 -4
index 81ce46f..8362272 100644
@@ -80,7 +80,7 @@ static
 void
 s_vGetDASA(
       PBYTE pbyRxBufferAddr,
-     PUINT pcbHeaderSize,
+     unsigned int * pcbHeaderSize,
      PSEthernetHeader psEthHeader
     );
 
@@ -92,7 +92,7 @@ s_vProcessRxMACHeader (
       unsigned int cbPacketSize,
       BOOL bIsWEP,
       BOOL bExtIV,
-     PUINT pcbHeadSize
+     unsigned int * pcbHeadSize
     );
 
 static BOOL s_bAPModeRxCtl(
@@ -167,7 +167,7 @@ s_vProcessRxMACHeader (
       unsigned int cbPacketSize,
       BOOL bIsWEP,
       BOOL bExtIV,
-     PUINT pcbHeadSize
+     unsigned int * pcbHeadSize
     )
 {
     PBYTE           pbyRxBuffer;
@@ -261,7 +261,7 @@ static
 void
 s_vGetDASA (
       PBYTE pbyRxBufferAddr,
-     PUINT pcbHeaderSize,
+     unsigned int * pcbHeaderSize,
      PSEthernetHeader psEthHeader
     )
 {
drivers/staging/vt6656/ttype.h +0 -1
index 3425773..fd78135 100644
@@ -87,7 +87,6 @@ typedef unsigned long   ULONG_PTR;      // 32-bit
 typedef unsigned long   DWORD_PTR;      // 32-bit
 
 // boolean pointer
-typedef unsigned int *   PUINT;
 
 typedef BYTE *           PBYTE;
 
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 4 lines · Roel Van Nyen

Remove PUINT from ttype.h and change it to unsigned int *

Signed-of-by Roel Van Nyen <[email protected]>
---

Please run your patches through the scripts/checkpatch.pl script before sending them to me. I can't add new warnings to the drivers, sorry.

thanks,

greg k-h

#2 lore raw
Quoted 6 lines · Greg KH
Quoted 4 lines · Roel Van Nyen

Remove PUINT from ttype.h and change it to unsigned int *

Signed-of-by Roel Van Nyen <[email protected]>
---

Quoted 6 lines

Please run your patches through the scripts/checkpatch.pl script before sending them to me. I can't add new warnings to the drivers, sorry.

thanks,

greg k-hi

Hi Greg,

I have re-done the patch, this time without any checkpatch.pl warnings.

Remove PUINT from ttype.h

---
 drivers/staging/vt6656/bssdb.c |    4 ++--
 drivers/staging/vt6656/bssdb.h |    4 ++--
 drivers/staging/vt6656/dpc.c   |    8 ++++----
 drivers/staging/vt6656/ttype.h |    1 -
 4 files changed, 8 insertions(+), 9 deletions(-)
drivers/staging/vt6656/bssdb.c +2 -2
index 830dd23..4c604db 100644
@@ -736,7 +736,7 @@ BOOL BSSbUpdateToBSSList(void *hDeviceContext,
 
 BOOL BSSbIsSTAInNodeDB(void *hDeviceContext,
 		       PBYTE abyDstAddr,
-		       PUINT puNodeIndex)
+		       unsigned int *puNodeIndex)
 {
     PSDevice        pDevice = (PSDevice)hDeviceContext;
     PSMgmtObject    pMgmt = &(pDevice->sMgmtObj);
@@ -768,7 +768,7 @@ BOOL BSSbIsSTAInNodeDB(void *hDeviceContext,
  *    None
  *
 -*/
-void BSSvCreateOneNode(void *hDeviceContext, PUINT puNodeIndex)
+void BSSvCreateOneNode(void *hDeviceContext, unsigned int *puNodeIndex)
 {
 
     PSDevice     pDevice = (PSDevice)hDeviceContext;
drivers/staging/vt6656/bssdb.h +2 -2
index c3aaefe..f1bd38b 100644
@@ -278,9 +278,9 @@ BOOL BSSbUpdateToBSSList(void *hDeviceContext,
 
 BOOL BSSbIsSTAInNodeDB(void *hDeviceContext,
 		       PBYTE abyDstAddr,
-		       PUINT puNodeIndex);
+		       unsigned int *puNodeIndex);
 
-void BSSvCreateOneNode(void *hDeviceContext, PUINT puNodeIndex);
+void BSSvCreateOneNode(void *hDeviceContext, unsigned int *puNodeIndex);
 
 void BSSvUpdateAPNode(void *hDeviceContext,
 		      PWORD pwCapInfo,
drivers/staging/vt6656/dpc.c +4 -4
index 81ce46f..4f7e778 100644
@@ -80,7 +80,7 @@ static
 void
 s_vGetDASA(
       PBYTE pbyRxBufferAddr,
-     PUINT pcbHeaderSize,
+     unsigned int *pcbHeaderSize,
      PSEthernetHeader psEthHeader
     );
 
@@ -92,7 +92,7 @@ s_vProcessRxMACHeader (
       unsigned int cbPacketSize,
       BOOL bIsWEP,
       BOOL bExtIV,
-     PUINT pcbHeadSize
+     unsigned int *pcbHeadSize
     );
 
 static BOOL s_bAPModeRxCtl(
@@ -167,7 +167,7 @@ s_vProcessRxMACHeader (
       unsigned int cbPacketSize,
       BOOL bIsWEP,
       BOOL bExtIV,
-     PUINT pcbHeadSize
+     unsigned int *pcbHeadSize
     )
 {
     PBYTE           pbyRxBuffer;
@@ -261,7 +261,7 @@ static
 void
 s_vGetDASA (
       PBYTE pbyRxBufferAddr,
-     PUINT pcbHeaderSize,
+     unsigned int *pcbHeaderSize,
      PSEthernetHeader psEthHeader
     )
 {
drivers/staging/vt6656/ttype.h +0 -1
index 3425773..fd78135 100644
@@ -87,7 +87,6 @@ typedef unsigned long   ULONG_PTR;      // 32-bit
 typedef unsigned long   DWORD_PTR;      // 32-bit
 
 // boolean pointer
-typedef unsigned int *   PUINT;
 
 typedef BYTE *           PBYTE;
 
Signature · 1 line
1.7.0.4