linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] Documentation/filesystems/sysfs.txt: fix device_attribute declaration
@ 2013-11-19 10:38 Andre Richter
  0 siblings, 0 replies; only message in thread
From: Andre Richter @ 2013-11-19 10:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andre Richter

Fix a wrong device_attribute declaration example.

Signed-off-by: Andre Richter <andre.o.richter@gmail.com>
---
 Documentation/filesystems/sysfs.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt
index a6619b7..317d673 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,
+		.mode = S_IWUSR | S_IRUGO,
 	},
+	.show = show_foo,
+	.store = store_foo,
 };
 
 
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-19 10:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 10:38 [PATCH 1/1] Documentation/filesystems/sysfs.txt: fix device_attribute declaration Andre Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).