Skip to content

Commit

Permalink
gpio/mxc: move irq_to_gpio() into gpio-mxc driver
Browse files Browse the repository at this point in the history
As irq_to_gpio() is only being used by gpio-mxc driver, it should be
moved from mach/gpio.h into gpio-mxc.c.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Shawn Guo authored and Sascha Hauer committed Aug 17, 2011
1 parent df1bac2 commit a439561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/arm/plat-mxc/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@
#define gpio_cansleep __gpio_cansleep
#define gpio_to_irq __gpio_to_irq

#define irq_to_gpio(irq) ((irq) - MXC_GPIO_IRQ_START)

#endif
2 changes: 2 additions & 0 deletions drivers/gpio/gpio-mxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <linux/of_device.h>
#include <asm-generic/bug.h>

#define irq_to_gpio(irq) ((irq) - MXC_GPIO_IRQ_START)

enum mxc_gpio_hwtype {
IMX1_GPIO, /* runs on i.mx1 */
IMX21_GPIO, /* runs on i.mx21 and i.mx27 */
Expand Down

0 comments on commit a439561

Please sign in to comment.