Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131659
b: refs/heads/master
c: 245127d
h: refs/heads/master
i:
  131657: af89161
  131655: 8ece3dc
v: v3
  • Loading branch information
Mike Murphy authored and Linus Torvalds committed Feb 22, 2009
1 parent c07e428 commit d12966b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d92e8f3ae9ba21cac30370eb254ed9dc20df043
refs/heads/master: 245127dbe9ea1e5a93aae0d3ede09992f1e99f53
8 changes: 5 additions & 3 deletions trunk/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 d12966b

Please sign in to comment.