Documentation/filesystems/sysfs.txt: fix device_attribute declaration
[sfrench/cifs-2.6.git] / Documentation / filesystems / sysfs.txt
index a6619b7064b9e679b887d31ec85301d300c088f5..b35a64b82f9e8371d42fcf893354d02c07c6c229 100644 (file)
@@ -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,
        },
+       .show = show_foo,
+       .store = store_foo,
 };