mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 14:43:58 +08:00
w1: ds2438: changed sysfs macro for rw file
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>
This commit is contained in:
parent
c9f2713531
commit
67c6964228
@ -388,7 +388,7 @@ static ssize_t vdd_read(struct file *filp, struct kobject *kobj,
|
|||||||
return ret;
|
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(page0, DS2438_PAGE_SIZE);
|
||||||
static BIN_ATTR_RO(temperature, 0/* real length varies */);
|
static BIN_ATTR_RO(temperature, 0/* real length varies */);
|
||||||
static BIN_ATTR_RO(vad, 0/* real length varies */);
|
static BIN_ATTR_RO(vad, 0/* real length varies */);
|
||||||
|
Loading…
Reference in New Issue
Block a user