From: Andre Richter Date: Fri, 3 Jan 2014 03:10:26 +0000 (+1100) Subject: Documentation/filesystems/sysfs.txt: fix device_attribute declaration X-Git-Tag: next-20140106~2^2~49 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ceb71a17c33ec4aea10f0af747cf1518d19d9197;p=karo-tx-linux.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 --- 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, };