]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Documentation/filesystems/sysfs.txt: fix device_attribute declaration
authorAndre Richter <andre.o.richter@gmail.com>
Fri, 3 Jan 2014 03:10:26 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:26 +0000 (14:10 +1100)
Fix a wrong device_attribute declaration example.

Signed-off-by: Andre Richter <andre.o.richter@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
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,
 };