summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/rmi4/rmi_f34.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/rmi4/rmi_f34.c')
-rw-r--r--drivers/input/touchscreen/rmi4/rmi_f34.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/input/touchscreen/rmi4/rmi_f34.c b/drivers/input/touchscreen/rmi4/rmi_f34.c
index 33e84d2cfb24..abade244b834 100644
--- a/drivers/input/touchscreen/rmi4/rmi_f34.c
+++ b/drivers/input/touchscreen/rmi4/rmi_f34.c
@@ -124,9 +124,9 @@ static struct device_attribute attrs[] = {
rmi_fn_34_status_show, rmi_store_error),
/* Also, sysfs will need to have a file set up to distinguish
* between commands - like Config write/read, Image write/verify. */
- __ATTR(cmd, RMI_RW_ATTR,
+ __ATTR(cmd, RMI_RO_ATTR,
rmi_fn_34_cmd_show, rmi_fn_34_cmd_store),
- __ATTR(bootloaderid, RMI_RW_ATTR,
+ __ATTR(bootloaderid, RMI_RO_ATTR,
rmi_fn_34_bootloaderid_show, rmi_fn_34_bootloaderid_store),
__ATTR(blocksize, RMI_RO_ATTR,
rmi_fn_34_blocksize_show, rmi_store_error),
@@ -134,16 +134,16 @@ static struct device_attribute attrs[] = {
rmi_fn_34_imageblockcount_show, rmi_store_error),
__ATTR(configblockcount, RMI_RO_ATTR,
rmi_fn_34_configblockcount_show, rmi_store_error),
- __ATTR(blocknum, RMI_RW_ATTR,
+ __ATTR(blocknum, RMI_RO_ATTR,
rmi_fn_34_blocknum_show, rmi_fn_34_blocknum_store),
- __ATTR(rescanPDT, RMI_WO_ATTR,
+ __ATTR(rescanPDT, RMI_RO_ATTR,
rmi_show_error, rmi_fn_34_rescanPDT_store)
};
struct bin_attribute dev_attr_data = {
.attr = {
.name = "data",
- .mode = 0666},
+ .mode = 0644},
.size = 0,
.read = rmi_fn_34_data_read,
.write = rmi_fn_34_data_write,