]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/arm/include/asm/gpio.h
Merge branch 'for-4.4/io-poll' of git://git.kernel.dk/linux-block
[mirror_ubuntu-artful-kernel.git] / arch / arm / include / asm / gpio.h
CommitLineData
4c20386c
DB
1#ifndef _ARCH_ARM_GPIO_H
2#define _ARCH_ARM_GPIO_H
3
44986ab0 4#if CONFIG_ARCH_NR_GPIO > 0
ca95023e 5#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO
44986ab0
PDSN
6#endif
7
22fe6783
RK
8/* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */
9#include <asm-generic/gpio.h>
10
11/* The trivial gpiolib dispatchers */
12#define gpio_get_value __gpio_get_value
13#define gpio_set_value __gpio_set_value
14#define gpio_cansleep __gpio_cansleep
22fe6783 15
01e7dc89
RK
16/*
17 * Provide a default gpio_to_irq() which should satisfy every case.
18 * However, some platforms want to do this differently, so allow them
19 * to override it.
20 */
21#ifndef gpio_to_irq
22#define gpio_to_irq __gpio_to_irq
23#endif
24
4c20386c 25#endif /* _ARCH_ARM_GPIO_H */