mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-11-25 05:00:39 +00:00
zorro: Make sysfs config attribute read-only
zorro: Make the sysfs `config' attribute read-only, as you cannot write to it (there's no .write function neither). Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
90638f9975
commit
a01086687c
@ -78,7 +78,7 @@ static ssize_t zorro_read_config(struct kobject *kobj,
|
||||
static struct bin_attribute zorro_config_attr = {
|
||||
.attr = {
|
||||
.name = "config",
|
||||
.mode = S_IRUGO | S_IWUSR,
|
||||
.mode = S_IRUGO,
|
||||
},
|
||||
.size = sizeof(struct ConfigDev),
|
||||
.read = zorro_read_config,
|
||||
|
Loading…
Reference in New Issue
Block a user