[xburst] gpio.h: Add proper parenthesis to JZ_GPIO_PORTX macros
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 5 Mar 2010 02:53:23 +0000 (02:53 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Fri, 5 Mar 2010 02:53:23 +0000 (02:53 +0000)
SVN-Revision: 19983

target/linux/xburst/files-2.6.32/arch/mips/include/asm/mach-jz4740/gpio.h

index 90d37ddd068298a68c9d4d664264fe8f50b3c756..99206dd7b4424a4a83f770749a31d1cc462b424a 100644 (file)
@@ -76,10 +76,10 @@ uint32_t jz_gpio_port_get_value(int port, uint32_t mask);
 
 #include <asm/mach-generic/gpio.h>
 
-#define JZ_GPIO_PORTA(x) (x + 32 * 0)
-#define JZ_GPIO_PORTB(x) (x + 32 * 1)
-#define JZ_GPIO_PORTC(x) (x + 32 * 2)
-#define JZ_GPIO_PORTD(x) (x + 32 * 3)
+#define JZ_GPIO_PORTA(x) ((x) + 32 * 0)
+#define JZ_GPIO_PORTB(x) ((x) + 32 * 1)
+#define JZ_GPIO_PORTC(x) ((x) + 32 * 2)
+#define JZ_GPIO_PORTD(x) ((x) + 32 * 3)
 
 /* Port A function pins */
 #define JZ_GPIO_MEM_DATA0              JZ_GPIO_PORTA(0)