[PATCH 1/1] Documentation/filesystems/sysfs.txt: fix device_attribute declaration

2013-11-19 Thread Andre Richter
Fix a wrong device_attribute declaration example.

Signed-off-by: Andre Richter 
---
 Documentation/filesystems/sysfs.txt | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/filesystems/sysfs.txt 
b/Documentation/filesystems/sysfs.txt
index a6619b7..317d673 100644
--- a/Documentation/filesystems/sysfs.txt
+++ b/Documentation/filesystems/sysfs.txt
@@ -108,12 +108,12 @@ static DEVICE_ATTR(foo, S_IWUSR | S_IRUGO, show_foo, 
store_foo);
 is equivalent to doing:
 
 static struct device_attribute dev_attr_foo = {
-   .attr   = {
+   .attr = {
.name = "foo",
-   .mode = S_IWUSR | S_IRUGO,
-   .show = show_foo,
-   .store = store_foo,
+   .mode = S_IWUSR | S_IRUGO,
},
+   .show = show_foo,
+   .store = store_foo,
 };
 
 
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/1] Documentation/filesystems/sysfs.txt: fix device_attribute declaration

2013-11-19 Thread Andre Richter
Fix a wrong device_attribute declaration example.

Signed-off-by: Andre Richter andre.o.rich...@gmail.com
---
 Documentation/filesystems/sysfs.txt | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/filesystems/sysfs.txt 
b/Documentation/filesystems/sysfs.txt
index a6619b7..317d673 100644
--- a/Documentation/filesystems/sysfs.txt
+++ b/Documentation/filesystems/sysfs.txt
@@ -108,12 +108,12 @@ static DEVICE_ATTR(foo, S_IWUSR | S_IRUGO, show_foo, 
store_foo);
 is equivalent to doing:
 
 static struct device_attribute dev_attr_foo = {
-   .attr   = {
+   .attr = {
.name = foo,
-   .mode = S_IWUSR | S_IRUGO,
-   .show = show_foo,
-   .store = store_foo,
+   .mode = S_IWUSR | S_IRUGO,
},
+   .show = show_foo,
+   .store = store_foo,
 };
 
 
-- 
1.8.3.2

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/