From: Andre Richter Date: Thu, 23 Jan 2014 23:55:26 +0000 (-0800) Subject: Documentation/filesystems/sysfs.txt: fix device_attribute declaration X-Git-Tag: v3.14-rc1~108^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1083732908f233c5234a5c8765347602e83630c;p=kernel%2Fkernel-generic.git Documentation/filesystems/sysfs.txt: fix device_attribute declaration Fix a wrong device_attribute declaration example. Signed-off-by: Andre Richter Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt index a6619b7..b35a64b 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, };