MIPS: Yosemite, Emma: Fix off-by-two in arcs_cmdline buffer size check
[linux-2.6/linux-mips.git] / arch / arm / mach-shmobile / include / mach / gpio.h
blob7bf0890e16ba43963171bf5dea4b3345c27e25d8
1 /*
2 * Generic GPIO API and pinmux table support
4 * Copyright (c) 2008 Magnus Damm
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 */
10 #ifndef __ASM_ARCH_GPIO_H
11 #define __ASM_ARCH_GPIO_H
13 #include <linux/kernel.h>
14 #include <linux/errno.h>
16 #define ARCH_NR_GPIOS 1024
17 #include <linux/sh_pfc.h>
19 #ifdef CONFIG_GPIOLIB
21 static inline int irq_to_gpio(unsigned int irq)
23 return -ENOSYS;
26 #else
28 #define __ARM_GPIOLIB_COMPLEX
30 #endif /* CONFIG_GPIOLIB */
32 #endif /* __ASM_ARCH_GPIO_H */