mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 5/5] Driver core: Documentation: use S_IRUSR | ... in stead of 0644
@ 2005-07-31 11:12 domen
  0 siblings, 0 replies; only message in thread
From: domen @ 2005-07-31 11:12 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Jan Veldeman, domen

[-- Attachment #1: fixup3-Documentation_filesystems_sysfs.txt --]
[-- Type: text/plain, Size: 957 bytes --]

From: Jan Veldeman <jan@mind.be>


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>

---
 sysfs.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: quilt/Documentation/filesystems/sysfs.txt
===================================================================
--- quilt.orig/Documentation/filesystems/sysfs.txt
+++ quilt/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,

--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-31 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-31 11:12 [patch 5/5] Driver core: Documentation: use S_IRUSR | ... in stead of 0644 domen

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®