diff options
author | Lukasz Majewski | 2019-06-09 22:54:40 +0200 |
---|---|---|
committer | Stefano Babic | 2019-07-19 20:14:50 +0200 |
commit | 01941377ff0ef1fa23fdfdc25162d020257d54dc (patch) | |
tree | 54aa9ca70c767fca85cffe05e3848d4999e5f82c | |
parent | ad31f656ae879cf655b911cae2203a1f0721c4c4 (diff) |
gpio: Add missing parenthesis to the GPIO_TO_PORT define
Add missing parenthesis to the GPIO_TO_PORT macro.
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r-- | drivers/gpio/mxc_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 8bd30c75b2f..64ab7a303f1 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[] = { |