From 8d28c211f3435e77f3d83d7398f46faa1c891156 Mon Sep 17 00:00:00 2001 From: Vikram Narayanan Date: Tue, 10 Apr 2012 04:26:08 +0000 Subject: [PATCH] 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 --- drivers/gpio/mxc_gpio.c | 1 + 1 file changed, 1 insertion(+) 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[] = { -- 2.39.5