mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 04:46:45 +07:00
ca95023e75
Commit 44986ab
"ARM: 7240/1: Make ARCH_NR_GPIO a Kconfig variable"
spelled ARCH_NR_GPIOS as ARCH_NR_GPIO, hence making the change
ineffective. This change fixes that.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
31 lines
776 B
C
31 lines
776 B
C
#ifndef _ARCH_ARM_GPIO_H
|
|
#define _ARCH_ARM_GPIO_H
|
|
|
|
#if CONFIG_ARCH_NR_GPIO > 0
|
|
#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO
|
|
#endif
|
|
|
|
/* not all ARM platforms necessarily support this API ... */
|
|
#include <mach/gpio.h>
|
|
|
|
#ifndef __ARM_GPIOLIB_COMPLEX
|
|
/* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */
|
|
#include <asm-generic/gpio.h>
|
|
|
|
/* The trivial gpiolib dispatchers */
|
|
#define gpio_get_value __gpio_get_value
|
|
#define gpio_set_value __gpio_set_value
|
|
#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 */
|