mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
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>
This commit is contained in:
parent
ad31f656ae
commit
01941377ff
1 changed files with 1 additions and 1 deletions
|
@ -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[] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue