From: Andre Richter <andre.o.richter@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Andre Richter <andre.o.richter@gmail.com>
Subject: [PATCH 1/1] Documentation/filesystems/sysfs.txt: fix device_attribute declaration
Date: Tue, 19 Nov 2013 11:38:04 +0100 [thread overview]
Message-ID: <1384857484-5596-1-git-send-email-andre.o.richter@gmail.com> (raw)
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
reply other threads:[~2013-11-19 10:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1384857484-5596-1-git-send-email-andre.o.richter@gmail.com \
--to=andre.o.richter@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).