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 <vikram186@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
Vikram Narayanan 2012-04-10 04:26:08 +00:00 committed by Albert ARIBAUD
parent a9407f2bc5
commit 8d28c211f3

View File

@ -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[] = {