Skip to content

Commit

Permalink
PATCH [1/2] Documentation/driver-model/device.txt: fix struct device_…
Browse files Browse the repository at this point in the history
…attribute

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Mike Murphy authored and torvalds committed Feb 22, 2009
1 parent 3d92e8f commit 245127d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Documentation/driver-model/device.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ void unlock_device(struct device * dev);
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
Expand Down

0 comments on commit 245127d

Please sign in to comment.