projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad31f65
)
gpio: Add missing parenthesis to the GPIO_TO_PORT define
author
Lukasz Majewski
<lukma@denx.de>
Sun, 9 Jun 2019 20:54:40 +0000
(22:54 +0200)
committer
Stefano Babic
<sbabic@denx.de>
Fri, 19 Jul 2019 18:14:50 +0000
(20:14 +0200)
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>
drivers/gpio/mxc_gpio.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/mxc_gpio.c
b/drivers/gpio/mxc_gpio.c
index 8bd30c75b2ffc96a93fb6886d0876150c65a3e39..64ab7a303f111f38d6998cd96a4d4dc655af0665 100644
(file)
--- 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[] = {