From: Vikram Narayanan Date: Tue, 10 Apr 2012 04:26:08 +0000 (+0000) Subject: imx: Add GPIO_TO_PORT macro in the mxc_gpio driver X-Git-Tag: v2012.04-rc2~1^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d28c211f3435e77f3d83d7398f46faa1c891156;p=u-boot imx: Add GPIO_TO_PORT macro in the mxc_gpio driver Add GPIO_TO_PORT macro in the mxc_gpio.c driver Signed-off-by: Vikram Narayanan Acked-by: Stefano Babic --- diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index df6bbbbc4b..7e65b39a75 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -34,6 +34,7 @@ enum mxc_gpio_direction { MXC_GPIO_DIRECTION_OUT, }; +#define GPIO_TO_PORT(n) (n / 32) /* GPIO port description */ static unsigned long gpio_ports[] = {