forked from Minki/linux
8f3c4537bb
Rather than marking the mach/gpio.h header files which want to use the trivial GPIOLIB implementation, mark those which do not want to use it instead. This means that by default, you get the trivial implementation and only have to do something extra if you need to. This should encourage the use of the trivial default implementation. As an additional bonus, several gpio.h header files become empty. Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Tested-by: Jamie Iles <jamie@jamieiles.com> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
31 lines
610 B
C
31 lines
610 B
C
/*
|
|
* linux/arch/arm/mach-w90p910/include/mach/gpio.h
|
|
*
|
|
* Generic w90p910 GPIO handling
|
|
*
|
|
* Wan ZongShun <mcuos.com@gmail.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_W90P910_GPIO_H
|
|
#define __ASM_ARCH_W90P910_GPIO_H
|
|
|
|
#include <mach/hardware.h>
|
|
#include <asm/irq.h>
|
|
|
|
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)
|
|
{
|
|
return irq;
|
|
}
|
|
|
|
#endif
|