diff options
author | Andre Richter <andre.o.richter@gmail.com> | 2014-01-23 15:55:26 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 16:37:00 -0800 |
commit | c1083732908f233c5234a5c8765347602e83630c (patch) | |
tree | a78aa7c31e85462a4d02c60ee0373a3bed6cc73e /Documentation/filesystems | |
parent | d74a054fa4f5a3fc05eae11b3ff0b653b49dd7cb (diff) | |
download | linux-c1083732908f233c5234a5c8765347602e83630c.tar.gz linux-c1083732908f233c5234a5c8765347602e83630c.tar.bz2 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>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r-- | Documentation/filesystems/sysfs.txt | 6 |
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, }; |