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-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8d28c211f3435e77f3d83d7398f46faa1c891156;p=u-boot.git 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[] = {