Skip to contentSkip to conversation

Documentation/filesystems/sysfs.txt: fix device_attribute declaration

PATCH New Andre Richter 1 participant 1 message Nov 19, 2013 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation/filesystems/sysfs.txt: fix device_attribute declaration

Fix a wrong device_attribute declaration example.

---
 Documentation/filesystems/sysfs.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/filesystems/sysfs.txt +4 -4
index a6619b7..317d673 100644
@@ -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,
 };
 
 
Signature · 1 line
1.8.3.2