X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/809c03fe4c0f90c640b26e6a2792553b592c68f2..3d00b9bbe1ed2b958c6940b3b16f0f6907f1471c:/target/linux/xburst/files-2.6.32/arch/mips/include/asm/mach-jz4740/gpio.h 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 90d37ddd0..99206dd7b 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 -#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)