diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-05-08 03:35:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:22 -0400 |
commit | db05c3b1ddaa06e658548f3d99e31a188b0b3bcc (patch) | |
tree | 5b645d4da752988c21b6a66c7afe8a34f994c8df /include/linux/cyclades.h | |
parent | ffa68e79ffa952ec909b66505f004e7323316369 (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/linux/cyclades.h')
-rw-r--r-- | include/linux/cyclades.h | 10 |
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 { | |||
539 | * (required to support Alpha systems) * | 539 | * (required to support Alpha systems) * |
540 | ***************************************/ | 540 | ***************************************/ |
541 | 541 | ||
542 | #define cy_writeb(port,val) {writeb((val),(port)); mb();} | 542 | #define cy_writeb(port,val) do { writeb((val), (port)); mb(); } while (0) |
543 | #define cy_writew(port,val) {writew((val),(port)); mb();} | 543 | #define cy_writew(port,val) do { writew((val), (port)); mb(); } while (0) |
544 | #define cy_writel(port,val) {writel((val),(port)); mb();} | 544 | #define cy_writel(port,val) do { writel((val), (port)); mb(); } while (0) |
545 | |||
546 | #define cy_readb(port) readb(port) | ||
547 | #define cy_readw(port) readw(port) | ||
548 | #define cy_readl(port) readl(port) | ||
549 | 545 | ||
550 | /* | 546 | /* |
551 | * Statistics counters | 547 | * Statistics counters |