Skip to contentSkip to conversation

+ documentation-filesystems-sysfstxt-fix-device_attribute-declaration.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Nov 22, 2013 Documentation

lore
Share & tools
lore
#0 lore raw

Subject: + documentation-filesystems-sysfstxt-fix-device_attribute-declaration.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 21 Nov 2013 16:46:38 -0800

The patch titled
Subject: Documentation/filesystems/sysfs.txt: fix device_attribute declaration
has been added to the -mm tree. Its filename is
documentation-filesystems-sysfstxt-fix-device_attribute-declaration.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/documentation-filesystems-sysfstxt-fix-device_attribute-declaration.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/documentation-filesystems-sysfstxt-fix-device_attribute-declaration.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Andre Richter <[email protected]>
Subject: Documentation/filesystems/sysfs.txt: fix device_attribute declaration

Fix a wrong device_attribute declaration example.

---

 Documentation/filesystems/sysfs.txt |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/filesystems/sysfs.txt renamed from Documentation/filesystems/sysfs.txt~documentation-filesystems-sysfstxt-fix-device_attribute-declaration +3 -3
diff -puN Documentation/filesystems/sysfs.txt~documentation-filesystems-sysfstxt-fix-device_attribute-declaration Documentation/filesystems/sysfs.txt
@@ -108,12 +108,12 @@ static DEVICE_ATTR(foo, S_IWUSR | S_IRUG
 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,
 };
 
 

_

Patches currently in -mm which might be from [email protected] are

origin.patch documentation-filesystems-sysfstxt-fix-device_attribute-declaration.patch