[PATCH 30/34] staging: bcm: Convert define DWORD to unsigned int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



DWORD is a #define, replace it with the defined type.

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
 drivers/staging/bcm/nvm.c |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/drivers/staging/bcm/nvm.c b/drivers/staging/bcm/nvm.c
index 0d113c2..126fe0d 100644
--- a/drivers/staging/bcm/nvm.c
+++ b/drivers/staging/bcm/nvm.c
@@ -1,7 +1,5 @@
 #include "headers.h"
 
-#define DWORD unsigned int
-
 static int BcmDoChipSelect(PMINI_ADAPTER Adapter, unsigned int offset);
 static int BcmGetActiveDSD(PMINI_ADAPTER Adapter);
 static int BcmGetActiveISO(PMINI_ADAPTER Adapter);
@@ -65,7 +63,7 @@ static int ReadBeceemEEPROMBulk(PMINI_ADAPTER Adapter, unsigned int dwAddress, u
 static unsigned char ReadEEPROMStatusRegister( PMINI_ADAPTER Adapter )
 {
 	unsigned char uiData = 0;
-	DWORD dwRetries = MAX_EEPROM_RETRIES*RETRIES_PER_DELAY;
+	unsigned int dwRetries = MAX_EEPROM_RETRIES*RETRIES_PER_DELAY;
 	unsigned int uiStatus = 0;
 	unsigned int value = 0;
 	unsigned int value1 = 0;
@@ -127,13 +125,13 @@ static unsigned char ReadEEPROMStatusRegister( PMINI_ADAPTER Adapter )
 //-----------------------------------------------------------------------------
 
 int ReadBeceemEEPROMBulk( PMINI_ADAPTER Adapter,
-			  DWORD dwAddress,
-			  DWORD *pdwData,
-			  DWORD dwNumWords
+			  unsigned int dwAddress,
+			  unsigned int *pdwData,
+			  unsigned int dwNumWords
 	)
 {
-	DWORD dwIndex = 0;
-	DWORD dwRetries = MAX_EEPROM_RETRIES*RETRIES_PER_DELAY;
+	unsigned int dwIndex = 0;
+	unsigned int dwRetries = MAX_EEPROM_RETRIES*RETRIES_PER_DELAY;
 	unsigned int uiStatus = 0;
 	unsigned int value = 0;
 	unsigned int value1 = 0;
@@ -247,8 +245,8 @@ int ReadBeceemEEPROMBulk( PMINI_ADAPTER Adapter,
 //-----------------------------------------------------------------------------
 
 int ReadBeceemEEPROM( PMINI_ADAPTER Adapter,
-		      DWORD uiOffset,
-		      DWORD *pBuffer
+		      unsigned int uiOffset,
+		      unsigned int *pBuffer
 	)
 {
 	unsigned int uiData[8]		= {0};
-- 
1.7.8.111.gad25c.dirty

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux