summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2018-01-23 14:51:46 +0100
committerJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2018-01-23 14:55:41 +0100
commitb7df1a740f2c58d9d125a094cf69049cd1dae4d8 (patch)
tree477128ccb86d95145399833f6c888fc2148b14b3
parentba006797cf3122cc7e23e97da26d01d5196bee05 (diff)
gpio: start gpio numbers at zero again
Commit 3b7424f33273 pinctrl: rockchip: Make the gpio base started from 1000 let the gpio numbers start at 1000 instead of zero. This is an ABI change and breaks all existing gpio users. Undo the user-visible change by defining ARCH_GPIO_BASE to zero. Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
-rw-r--r--include/asm-generic/gpio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index 56bfbb4e497f..60242403accc 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -25,7 +25,7 @@
* actually an estimate of a board-specific value.
*/
-#define ARCH_GPIO_BASE 1000
+#define ARCH_GPIO_BASE 0
#ifndef ARCH_NR_GPIOS
#define ARCH_NR_GPIOS 512