1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-01 00:21:51 +02:00

gpio.h: Add proper parenthesis to JZ_GPIO_PORTX macros

SVN-Revision: 19983
This commit is contained in:
Lars-Peter Clausen 2010-03-05 02:53:23 +00:00
parent 020df2b0dc
commit d9e32f1932

@ -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)