projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9f2713
)
w1: ds2438: changed sysfs macro for rw file
author
Luiz Sampaio
<sampaio.ime@gmail.com>
Wed, 19 May 2021 22:30:43 +0000
(19:30 -0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 21 May 2021 12:51:32 +0000
(14:51 +0200)
The iad sysfs file has permissions for read and write. Changed to the
recommended macro BIN_ATTR_RW.
Signed-off-by: Luiz Sampaio <sampaio.ime@gmail.com>
Link:
https://lore.kernel.org/r/20210519223046.13798-4-sampaio.ime@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_ds2438.c
patch
|
blob
|
history
diff --git
a/drivers/w1/slaves/w1_ds2438.c
b/drivers/w1/slaves/w1_ds2438.c
index 56e53a748059c5928b1748a19e90bfcfd791236a..910e25163898af7895c416c87f4da4b35d7b01ca 100644
(file)
--- a/
drivers/w1/slaves/w1_ds2438.c
+++ b/
drivers/w1/slaves/w1_ds2438.c
@@
-388,7
+388,7
@@
static ssize_t vdd_read(struct file *filp, struct kobject *kobj,
return ret;
}
-static BIN_ATTR
(iad, S_IRUGO | S_IWUSR | S_IWGRP, iad_read, iad_write
, 0);
+static BIN_ATTR
_RW(iad
, 0);
static BIN_ATTR_RO(page0, DS2438_PAGE_SIZE);
static BIN_ATTR_RO(temperature, 0/* real length varies */);
static BIN_ATTR_RO(vad, 0/* real length varies */);