diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-03-05 02:53:23 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-03-05 02:53:23 +0000 |
commit | 859a9a12b06724b32b753642fdb32876770e2daa (patch) | |
tree | 537ecffd754f147286aae09dd49aa2662c9a977f /target/linux/xburst | |
parent | c2324766a6a76aae2efaefeba96cab91c0ca7b47 (diff) | |
download | master-187ad058-859a9a12b06724b32b753642fdb32876770e2daa.tar.gz master-187ad058-859a9a12b06724b32b753642fdb32876770e2daa.tar.bz2 master-187ad058-859a9a12b06724b32b753642fdb32876770e2daa.zip |
[xburst] gpio.h: Add proper parenthesis to JZ_GPIO_PORTX macros
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19983 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/xburst')
-rw-r--r-- | target/linux/xburst/files-2.6.32/arch/mips/include/asm/mach-jz4740/gpio.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/xburst/files-2.6.32/arch/mips/include/asm/mach-jz4740/gpio.h b/target/linux/xburst/files-2.6.32/arch/mips/include/asm/mach-jz4740/gpio.h index 90d37ddd06..99206dd7b4 100644 --- a/target/linux/xburst/files-2.6.32/arch/mips/include/asm/mach-jz4740/gpio.h +++ b/target/linux/xburst/files-2.6.32/arch/mips/include/asm/mach-jz4740/gpio.h @@ -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) |