aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorAlban Bedel <albeu@free.fr>2015-05-30 20:18:24 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-06-21 15:54:09 -0400
commit2ddf3a792218cddd30140b1f8b32cb6e2d67921f (patch)
treeb6651a32277f54216ebb36237431465dbb62c694 /include/linux/platform_data
parentd6743a496cfdd84375c7798cfc3dd0e1aeb4ca6d (diff)
MIPS: ath79: Add OF support to the GPIO driver
Replace the simple GPIO chip registration by a platform driver and make ath79_gpio_init() just register the device. Signed-off-by: Alban Bedel <albeu@free.fr> Cc: linux-mips@linux-mips.org Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/gpio-ath79.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/platform_data/gpio-ath79.h b/include/linux/platform_data/gpio-ath79.h
new file mode 100644
index 000000000000..88b0db7bee74
--- /dev/null
+++ b/include/linux/platform_data/gpio-ath79.h
@@ -0,0 +1,19 @@
1/*
2 * Atheros AR7XXX/AR9XXX GPIO controller platform data
3 *
4 * Copyright (C) 2015 Alban Bedel <albeu@free.fr>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#ifndef __LINUX_PLATFORM_DATA_GPIO_ATH79_H
12#define __LINUX_PLATFORM_DATA_GPIO_ATH79_H
13
14struct ath79_gpio_platform_data {
15 unsigned ngpios;
16 bool oe_inverted;
17};
18
19#endif