Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269396
b: refs/heads/master
c: 01e7dc8
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Aug 12, 2011
1 parent cd23972 commit c0217d5
Show file tree
Hide file tree
Showing 25 changed files with 14 additions and 43 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22fe67837614469f8e86c97e9e43d46270701b33
refs/heads/master: 01e7dc89d060413fd639635618de506093730964
9 changes: 9 additions & 0 deletions trunk/arch/arm/include/asm/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@
#define gpio_cansleep __gpio_cansleep
#endif

/*
* Provide a default gpio_to_irq() which should satisfy every case.
* However, some platforms want to do this differently, so allow them
* to override it.
*/
#ifndef gpio_to_irq
#define gpio_to_irq __gpio_to_irq
#endif

#endif /* _ARCH_ARM_GPIO_H */
5 changes: 0 additions & 5 deletions trunk/arch/arm/mach-davinci/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@ static inline int gpio_cansleep(unsigned gpio)
return __gpio_cansleep(gpio);
}

static inline int gpio_to_irq(unsigned gpio)
{
return __gpio_to_irq(gpio);
}

static inline int irq_to_gpio(unsigned irq)
{
/* don't support the reverse mapping */
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-exynos4/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#ifndef __ASM_ARCH_GPIO_H
#define __ASM_ARCH_GPIO_H __FILE__

#define gpio_to_irq __gpio_to_irq

/* Practically, GPIO banks up to GPZ are the configurable gpio banks */

/* GPIO bank sizes */
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-ixp4xx/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ static inline void gpio_set_value(unsigned gpio, int value)
#include <asm-generic/gpio.h> /* cansleep wrappers */

extern int gpio_to_irq(int gpio);
#define gpio_to_irq gpio_to_irq
extern int irq_to_gpio(unsigned int irq);

#endif
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-ks8695/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ extern int ks8695_gpio_interrupt(unsigned int pin, unsigned int type);
*/
extern int irq_to_gpio(unsigned int irq);

#define gpio_to_irq __gpio_to_irq

#define __ARM_GPIOLIB_TRIVIAL

/* Register the GPIOs */
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/arm/mach-lpc32xx/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,4 @@

#define __ARM_GPIOLIB_TRIVIAL

static inline int gpio_to_irq(unsigned gpio)
{
return __gpio_to_irq(gpio);
}

#endif
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-msm/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@

#define __ARM_GPIOLIB_TRIVIAL

#define gpio_to_irq __gpio_to_irq

#endif /* __ASM_ARCH_MSM_GPIO_H */
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-mxs/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

/* use gpiolib dispatchers */
#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq

#define irq_to_gpio(irq) ((irq) - MXS_GPIO_IRQ_START)

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-realview/include/mach/gpio.h
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-s3c2410/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/

#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq

/* some boards require extra gpio capacity to support external
* devices that need GPIO.
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-s3c64xx/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
*/

#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq

/* GPIO bank sizes */
#define S3C64XX_GPIO_A_NR (8)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-s5p64x0/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#define __ASM_ARCH_GPIO_H __FILE__

#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq

/* GPIO bank sizes */

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-s5pc100/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#define __ASM_ARCH_GPIO_H __FILE__

#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq

/* GPIO bank sizes */
#define S5PC100_GPIO_A0_NR (8)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-s5pv210/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#define __ASM_ARCH_GPIO_H __FILE__

#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq

/* Practically, GPIO banks up to MP03 are the configurable gpio banks */

Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/arm/mach-shmobile/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@

#define __ARM_GPIOLIB_TRIVIAL

static inline int gpio_to_irq(unsigned gpio)
{
return __gpio_to_irq(gpio);
}

static inline int irq_to_gpio(unsigned int irq)
{
return -ENOSYS;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-tegra/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ static inline int gpio_to_irq(unsigned int gpio)
return INT_GPIO_BASE + gpio;
return -EINVAL;
}
#define gpio_to_irq gpio_to_irq

static inline int irq_to_gpio(unsigned int irq)
{
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-u300/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ static inline unsigned gpio_to_irq(unsigned gpio)
{
return PIN_TO_PORT(gpio) + IRQ_U300_GPIO_PORT0;
}
#define gpio_to_irq gpio_to_irq

static inline unsigned irq_to_gpio(unsigned irq)
{
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-versatile/include/mach/gpio.h
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-vt8500/include/mach/gpio.h
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-w90x900/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ static inline int gpio_to_irq(unsigned gpio)
{
return gpio;
}
#define gpio_to_irq gpio_to_irq

static inline int irq_to_gpio(unsigned irq)
{
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/plat-nomadik/include/plat/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/kernel.h>

#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq

/*
* "nmk_gpio" and "NMK_GPIO" stand for "Nomadik GPIO", leaving
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/arm/plat-omap/include/plat/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,6 @@ extern void omap_gpio_restore_context(void);

#define __ARM_GPIOLIB_TRIVIAL

static inline int gpio_to_irq(unsigned gpio)
{
return __gpio_to_irq(gpio);
}

static inline int irq_to_gpio(unsigned irq)
{
int tmp;
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/arm/plat-orion/include/plat/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@

#define __ARM_GPIOLIB_TRIVIAL

/*
* GENERIC_GPIO primitives.
*/
#define gpio_to_irq __gpio_to_irq

/*
* Orion-specific GPIO API extensions.
*/
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/plat-spear/include/plat/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@
#define __PLAT_GPIO_H

#define __ARM_GPIOLIB_TRIVIAL
#define gpio_to_irq __gpio_to_irq

#endif /* __PLAT_GPIO_H */

0 comments on commit c0217d5

Please sign in to comment.