All of lore.kernel.org
 help / color / mirror / Atom feed
* Fwd: [PATCH 2/4] drivers/staging/vt6656/upc.h: Remove ttype.h and
@ 2011-11-04 10:09 Marcos Souza
  2011-11-04 11:14 ` Fwd: [PATCH 2/4] drivers/staging/vt6656/upc.h: Remove ttype.h Dan Carpenter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marcos Souza @ 2011-11-04 10:09 UTC (permalink / raw)
  To: kernel-janitors

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@gmail.com>
---
 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-04 17:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04 10:09 Fwd: [PATCH 2/4] drivers/staging/vt6656/upc.h: Remove ttype.h and Marcos Souza
2011-11-04 11:14 ` Fwd: [PATCH 2/4] drivers/staging/vt6656/upc.h: Remove ttype.h Dan Carpenter
2011-11-04 11:40 ` Fwd: [PATCH 2/4] drivers/staging/vt6656/upc.h: Remove ttype.h and Marcos Souza
2011-11-04 17:37 ` Fwd: [PATCH 2/4] drivers/staging/vt6656/upc.h: Remove ttype.h Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.