imx: Add GPIO_TO_PORT macro in the mxc_gpio driver
Subsystems (2)
PATCH v2 2/4 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 <[email protected]>
--- drivers/gpio/mxc_gpio.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/gpio/mxc_gpio.c +1 -0
@@ -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[] = {
Signature · 1 line
1.7.4.1
PATCH v2 2/4 imx: Add GPIO_TO_PORT macro in the mxc_gpio driver
Quoted 12 lines · Vikram Narayanan
Add
GPIO_TO_PORTmacro in themxc_gpio.cdriverSigned-off-by Vikram Narayanan <[email protected]>--- drivers/gpio/mxc_gpio.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/gpio/mxc_gpio.c +0
-0
drivers/gpio/mxc_gpio.c enum mxc_gpio_direction { · line 40
Quoted 7 lines
drivers/gpio/mxc_gpio.c +1
-0@@ -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[] = {
Acked-by Stefano Babic <[email protected]>
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH v2 2/4 imx: Add GPIO_TO_PORT macro in the mxc_gpio driver
In reply to Vikram NarayananQuoted 4 lines · Vikram Narayanan
Add
GPIO_TO_PORTmacro in themxc_gpio.cdriverSigned-off-by Vikram Narayanan <[email protected]>---
Applied to u-boot-imx (fix), thanks.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================