mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
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>
21 lines
570 B
C
21 lines
570 B
C
/*
|
|
* Gemini gpiolib specific defines
|
|
*
|
|
* Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef __MACH_GPIO_H__
|
|
#define __MACH_GPIO_H__
|
|
|
|
#include <mach/irqs.h>
|
|
|
|
#define gpio_to_irq(x) ((x) + GPIO_IRQ_BASE)
|
|
#define irq_to_gpio(x) ((x) - GPIO_IRQ_BASE)
|
|
|
|
#endif /* __MACH_GPIO_H__ */
|