summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-05-08 00:35:46 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 11:15:22 -0700
commitdb05c3b1ddaa06e658548f3d99e31a188b0b3bcc (patch)
tree5b645d4da752988c21b6a66c7afe8a34f994c8df /include
parentffa68e79ffa952ec909b66505f004e7323316369 (diff)
Char: cyclades, cy_readX/writeX cleanup
cyclades, cy_readX/writeX cleanup - cy_readX are placeholders for readX, remove it - move cy_writeX macros into do {} while(0) to be safe Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cyclades.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/linux/cyclades.h b/include/linux/cyclades.h
index 4c5b4763f5b8..f0ad61f69792 100644
--- a/include/linux/cyclades.h
+++ b/include/linux/cyclades.h
@@ -539,13 +539,9 @@ struct cyclades_chip {
* (required to support Alpha systems) *
***************************************/
-#define cy_writeb(port,val) {writeb((val),(port)); mb();}
-#define cy_writew(port,val) {writew((val),(port)); mb();}
-#define cy_writel(port,val) {writel((val),(port)); mb();}
-
-#define cy_readb(port) readb(port)
-#define cy_readw(port) readw(port)
-#define cy_readl(port) readl(port)
+#define cy_writeb(port,val) do { writeb((val), (port)); mb(); } while (0)
+#define cy_writew(port,val) do { writew((val), (port)); mb(); } while (0)
+#define cy_writel(port,val) do { writel((val), (port)); mb(); } while (0)
/*
* Statistics counters