aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.18/0030-GPIO-add-named-gpio-exports.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-06-17 10:22:04 +0000
committerJonas Gorski <jogo@openwrt.org>2015-06-17 10:22:04 +0000
commitb9c13dc540403877ee43369ce0027f43c7cab928 (patch)
treedec25a80e17d7c6d67b6daf822c22f5d10db3dd5 /target/linux/ramips/patches-3.18/0030-GPIO-add-named-gpio-exports.patch
parent966f1ab30128279f7b07acda088f4f3399718867 (diff)
downloadupstream-b9c13dc540403877ee43369ce0027f43c7cab928.tar.gz
upstream-b9c13dc540403877ee43369ce0027f43c7cab928.tar.bz2
upstream-b9c13dc540403877ee43369ce0027f43c7cab928.zip
kernel: update 3.18 to 3.18.16
Changelogs: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.15 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.16 Signed-off-by: Jonas Gorski <jogo@openwrt.org> Backport of r46011. git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46015 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.18/0030-GPIO-add-named-gpio-exports.patch')
-rw-r--r--target/linux/ramips/patches-3.18/0030-GPIO-add-named-gpio-exports.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ramips/patches-3.18/0030-GPIO-add-named-gpio-exports.patch b/target/linux/ramips/patches-3.18/0030-GPIO-add-named-gpio-exports.patch
index 307a99ab60..855da68285 100644
--- a/target/linux/ramips/patches-3.18/0030-GPIO-add-named-gpio-exports.patch
+++ b/target/linux/ramips/patches-3.18/0030-GPIO-add-named-gpio-exports.patch
@@ -140,9 +140,9 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
-int gpiod_export(struct gpio_desc *desc, bool direction_may_change)
+int __gpiod_export(struct gpio_desc *desc, bool direction_may_change, const char *name)
{
+ struct gpio_chip *chip;
unsigned long flags;
- int status;
-@@ -557,6 +557,8 @@ int gpiod_export(struct gpio_desc *desc,
+@@ -566,6 +566,8 @@ int gpiod_export(struct gpio_desc *desc,
offset = gpio_chip_hwgpio(desc);
if (desc->chip->names && desc->chip->names[offset])
ioname = desc->chip->names[offset];
@@ -151,7 +151,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
dev = device_create_with_groups(&gpio_class, desc->chip->dev,
MKDEV(0, 0), desc, gpio_groups,
-@@ -593,6 +595,12 @@ fail_unlock:
+@@ -602,6 +604,12 @@ fail_unlock:
gpiod_dbg(desc, "%s: status %d\n", __func__, status);
return status;
}