From: Mike Murphy <mamurph@cs.clemson.edu>
To: linux-kernel@vger.kernel.org
Cc: Greg KH <greg@kroah.com>, torvalds@linux-foundation.org
Subject: PATCH [1/2] Documentation/driver-model/device.txt: fix struct device_attribute
Date: Sun, 22 Feb 2009 01:17:14 -0500 [thread overview]
Message-ID: <5aa163d00902212217s6a2414f2heea1712abaa45f02@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 169 bytes --]
Fix the presented definition of struct device_attribute to match the
actual definition in include/linux/device.h
Signed-off-by: Mike Murphy <mamurph[at]cs.clemson.edu>
[-- Attachment #2: device.patch --]
[-- Type: text/x-patch, Size: 755 bytes --]
--- linux-2.6.28.5/Documentation/driver-model/device.txt 2009-02-12 12:51:15.000000000 -0500
+++ docfix/Documentation/driver-model/device.txt 2009-02-22 00:42:58.000000000 -0500
@@ -127,9 +127,11 @@
Attributes
~~~~~~~~~~
struct device_attribute {
- struct attribute attr;
- ssize_t (*show)(struct device * dev, char * buf, size_t count, loff_t off);
- ssize_t (*store)(struct device * dev, const char * buf, size_t count, loff_t off);
+ struct attribute attr;
+ ssize_t (*show)(struct device *dev, struct device_attribute *attr,
+ char *buf);
+ ssize_t (*store)(struct device *dev, struct device_attribute *attr,
+ const char *buf, size_t count);
};
Attributes of devices can be exported via drivers using a simple
reply other threads:[~2009-02-22 6:17 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=5aa163d00902212217s6a2414f2heea1712abaa45f02@mail.gmail.com \
--to=mamurph@cs.clemson.edu \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.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
all inboxes | Powered by JetHome®