X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fpatches-3.18%2F0030-GPIO-add-named-gpio-exports.patch;h=855da682850a985e8b8c16d76ffa9de6508d6675;hb=ca3f1a614a1ee90fc67188b375888517f0c151df;hp=307a99ab6097cc38023edf56d686acf1a96f9e77;hpb=9157f620436a8383b13c30c0a26ad06b976b1a0b;p=15.05%2Fopenwrt.git 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 -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 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; }