Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7211
b: refs/heads/master
c: 91e4900
h: refs/heads/master
i:
  7209: b77fe1a
  7207: e037d67
v: v3
  • Loading branch information
Jan Veldeman authored and Greg Kroah-Hartman committed Sep 5, 2005
1 parent 31b6726 commit 018a216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: f8d825bfb8d2a7546eeb57569d0eedf8c5565d28
refs/heads/master: 91e49001b9a7fe5dc2fa5b56039fbca9aa638ccc
4 changes: 2 additions & 2 deletions trunk/Documentation/filesystems/sysfs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ struct device_attribute dev_attr_##_name = { \

For example, declaring

static DEVICE_ATTR(foo, 0644, show_foo, store_foo);
static DEVICE_ATTR(foo, S_IWUSR | S_IRUGO, show_foo, store_foo);

is equivalent to doing:

static struct device_attribute dev_attr_foo = {
.attr = {
.name = "foo",
.mode = 0644,
.mode = S_IWUSR | S_IRUGO,
},
.show = show_foo,
.store = store_foo,
Expand Down

0 comments on commit 018a216

Please sign in to comment.