Fwd: [PATCH 2/4] drivers/staging/vt6656/upc.h: Remove ttype.h and some dead comments

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

 



I forgot to sent these patches to the janitors...

Removed ttype.h for TODO file, and removed some odd comments

Signed-off-by: Marcos Paulo de Souza <marcos.mage@xxxxxxxxx>
---
 drivers/staging/vt6656/upc.h |   38 ++++++++++----------------------------
 1 files changed, 10 insertions(+), 28 deletions(-)

diff --git a/drivers/staging/vt6656/upc.h b/drivers/staging/vt6656/upc.h
index b33aba4..67eaf13 100644
--- a/drivers/staging/vt6656/upc.h
+++ b/drivers/staging/vt6656/upc.h
@@ -30,14 +30,8 @@
 #define __UPC_H__

 #include "device.h"
-#include "ttype.h"

-/*---------------------  Export Definitions -------------------------*/
-
-
-//
-//  For IO mapped
-//
+/*  For IO mapped */

 #ifdef IO_MAP

@@ -70,13 +64,10 @@

 #else

-//
-//  For memory mapped IO
-//
-
+/* For memory mapped IO */

 #define VNSvInPortB(dwIOAddress, pbyData) {                     \
-	volatile BYTE* pbyAddr = ((PBYTE)(dwIOAddress));            \
+	volatile unsigned char* pbyAddr = ((unsigned char *)(dwIOAddress)); \
 	*(pbyData) = readb(pbyAddr);                           \
 }

@@ -87,14 +78,14 @@
 }

 #define VNSvInPortD(dwIOAddress, pdwData) {                     \
-	volatile DWORD* pdwAddr = ((PDWORD)(dwIOAddress));          \
+	volatile unsigned long* pdwAddr = ((unsigned long *)(dwIOAddress));          \
 	*(pdwData) = readl(pdwAddr);                           \
 }


 #define VNSvOutPortB(dwIOAddress, byData) {                     \
-    volatile BYTE* pbyAddr = ((PBYTE)(dwIOAddress));            \
-    writeb((BYTE)byData, pbyAddr);							\
+	volatile unsigned char* pbyAddr = ((unsigned char *)(dwIOAddress));
          \
+	writeb((unsigned char)byData, pbyAddr);							\
 }


@@ -104,16 +95,14 @@
 }

 #define VNSvOutPortD(dwIOAddress, dwData) {                     \
-    volatile DWORD* pdwAddr = ((PDWORD)(dwIOAddress));          \
-    writel((DWORD)dwData, pdwAddr);					    \
+	volatile unsigned long* pdwAddr = ((unsigned long *)(dwIOAddress));          \
+	writel((unsigned long)dwData, pdwAddr);					    \
 }

 #endif

+/*ALWAYS IO-Mapped IO when in 16-bit/32-bit environment */

-//
-// ALWAYS IO-Mapped IO when in 16-bit/32-bit environment
-//
 #define PCBvInPortB(dwIOAddress, pbyData) {     \
 	    *(pbyData) = inb(dwIOAddress);          \
 }
@@ -140,7 +129,7 @@


 #define PCAvDelayByIO(uDelayUnit) {             \
-    BYTE    byData;                             \
+	unsigned char    byData;                             \
     unsigned long   ii;                                 \
                                                 \
     if (uDelayUnit <= 50) {                     \
@@ -152,11 +141,4 @@
     }                                           \
 }

-
-/*---------------------  Export Classes  ----------------------------*/
-
-/*---------------------  Export Variables  --------------------------*/
-
-/*---------------------  Export Functions  --------------------------*/
-
 #endif /* __UPC_H__ */
-- 
1.7.4.4




-- 
Marcos Paulo de Souza

*Porque uma vida sem desafios é uma vida sem razão.*
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux