From: Lukasz Majewski Date: Sun, 9 Jun 2019 20:54:40 +0000 (+0200) Subject: gpio: Add missing parenthesis to the GPIO_TO_PORT define X-Git-Tag: v2019.10-rc1~9^2~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=01941377ff0ef1fa23fdfdc25162d020257d54dc;p=oweals%2Fu-boot.git gpio: Add missing parenthesis to the GPIO_TO_PORT define Add missing parenthesis to the GPIO_TO_PORT macro. Signed-off-by: Lukasz Majewski Reviewed-by: Peng Fan --- diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 8bd30c75b2..64ab7a303f 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -31,7 +31,7 @@ struct mxc_bank_info { }; #ifndef CONFIG_DM_GPIO -#define GPIO_TO_PORT(n) (n / 32) +#define GPIO_TO_PORT(n) ((n) / 32) /* GPIO port description */ static unsigned long gpio_ports[] = {