mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02: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:
committed by
Stefano Babic
parent
ad31f656ae
commit
01941377ff
@@ -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[] = {
|
||||
|
Reference in New Issue
Block a user