提交 01941377 编写于 作者: L Lukasz Majewski 提交者: Stefano Babic

gpio: Add missing parenthesis to the GPIO_TO_PORT define

Add missing parenthesis to the GPIO_TO_PORT macro.
Signed-off-by: NLukasz Majewski <lukma@denx.de>
Reviewed-by: NPeng Fan <peng.fan@nxp.com>
上级 ad31f656
......@@ -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[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册