summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Richter <andre.o.richter@gmail.com>2014-01-24 00:55:26 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-24 01:37:00 +0100
commitc1083732908f233c5234a5c8765347602e83630c (patch)
treea78aa7c31e85462a4d02c60ee0373a3bed6cc73e
parenthfsplus: remove hfsplus_file_lookup() (diff)
downloadlinux-c1083732908f233c5234a5c8765347602e83630c.tar.xz
linux-c1083732908f233c5234a5c8765347602e83630c.zip
Documentation/filesystems/sysfs.txt: fix device_attribute declaration
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--Documentation/filesystems/sysfs.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt
index a6619b7064b9..b35a64b82f9e 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,
},
+ .show = show_foo,
+ .store = store_foo,
};