summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/sysfs.txt
diff options
context:
space:
mode:
authorJan Veldeman <jan@mind.be>2005-07-31 13:12:10 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-05 16:03:12 -0700
commit91e49001b9a7fe5dc2fa5b56039fbca9aa638ccc (patch)
tree62e6edcea7b967c092aaadd951b1cda9e22176cb /Documentation/filesystems/sysfs.txt
parentf8d825bfb8d2a7546eeb57569d0eedf8c5565d28 (diff)
downloadop-kernel-dev-91e49001b9a7fe5dc2fa5b56039fbca9aa638ccc.zip
op-kernel-dev-91e49001b9a7fe5dc2fa5b56039fbca9aa638ccc.tar.gz
[PATCH] Driver core: Documentation: use S_IRUSR | ... in stead of 0644
Change filemode to use defines in stead of 0644, based on suggestions by Walter Harms and Domen Puncer. Signed-off-by: Jan Veldeman <Jan.Veldeman@advalvas.be> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/filesystems/sysfs.txt')
-rw-r--r--Documentation/filesystems/sysfs.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt
index 4b86ec2..c8bce82 100644
--- a/Documentation/filesystems/sysfs.txt
+++ b/Documentation/filesystems/sysfs.txt
@@ -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,
OpenPOWER on IntegriCloud