summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/simple_gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev/simple_gpio.h')
-rw-r--r--arch/powerpc/sysdev/simple_gpio.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/simple_gpio.h b/arch/powerpc/sysdev/simple_gpio.h
new file mode 100644
index 000000000..f3f3a20d3
--- /dev/null
+++ b/arch/powerpc/sysdev/simple_gpio.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __SYSDEV_SIMPLE_GPIO_H
+#define __SYSDEV_SIMPLE_GPIO_H
+
+#include <linux/errno.h>
+
+#ifdef CONFIG_SIMPLE_GPIO
+extern void simple_gpiochip_init(const char *compatible);
+#else
+static inline void simple_gpiochip_init(const char *compatible) {}
+#endif /* CONFIG_SIMPLE_GPIO */
+
+#endif /* __SYSDEV_SIMPLE_GPIO_H */