aboutsummaryrefslogtreecommitdiffstats
path: root/c07.patch
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-22 17:08:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-22 17:08:18 +0100
commite7d7dc0e0e7ab68f1845e11b7574d83ac8015e0e (patch)
tree72d317ef93f50aa80af2f67c9d109e7ff59413ff /c07.patch
parent08ba5e5e533732546b64764231406dd6151342c1 (diff)
downloadpatches-e7d7dc0e0e7ab68f1845e11b7574d83ac8015e0e.tar.gz
lots of patches and fixes added and made
Diffstat (limited to 'c07.patch')
-rw-r--r--c07.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/c07.patch b/c07.patch
new file mode 100644
index 00000000000000..6915c84ea0da11
--- /dev/null
+++ b/c07.patch
@@ -0,0 +1,40 @@
+---
+ drivers/gpio/gpiolib-sysfs.c | 13 ++++++++-----
+ 1 file changed, 8 insertions(+), 5 deletions(-)
+
+--- a/drivers/gpio/gpiolib-sysfs.c
++++ b/drivers/gpio/gpiolib-sysfs.c
+@@ -479,6 +479,7 @@ done:
+ pr_debug("%s: status %d\n", __func__, status);
+ return status ? : len;
+ }
++static CLASS_ATTR_WO(export);
+
+ static ssize_t unexport_store(struct class *class,
+ struct class_attribute *attr,
+@@ -514,18 +515,20 @@ done:
+ pr_debug("%s: status %d\n", __func__, status);
+ return status ? : len;
+ }
++static CLASS_ATTR_WO(unexport);
+
+-static struct class_attribute gpio_class_attrs[] = {
+- __ATTR(export, 0200, NULL, export_store),
+- __ATTR(unexport, 0200, NULL, unexport_store),
+- __ATTR_NULL,
++static struct attribute *gpio_class_attrs[] = {
++ &class_attr_export.attr,
++ &class_attr_unexport.attr,
++ NULL,
+ };
++ATTRIBUTE_GROUPS(gpio_class);
+
+ static struct class gpio_class = {
+ .name = "gpio",
+ .owner = THIS_MODULE,
+
+- .class_attrs = gpio_class_attrs,
++ .class_groups = gpio_class_groups,
+ };
+
+