summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorHao Tang <htang@nvidia.com>2012-06-05 18:39:42 +0800
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-06-12 04:48:24 -0700
commitf97750024d50a24b9ad5493655283be70661e7d4 (patch)
tree15442d6be71333331bffaf73f17f5f4f93b83813 /drivers/input/touchscreen
parentae49f447dffadcafb5f72bfbd4d206cc88730a06 (diff)
input: touchscreen: rmi: Change permissions
Remove write permission for cts verification. The init script will make it acessible on engineering builds Bug 906796 Change-Id: I43170f61871018d15a710c1a75b5298dffec6f87 Signed-off-by: Hao Tang <htang@nvidia.com> Reviewed-on: http://git-master/r/106667 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Robert Collins <rcollins@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/rmi4/rmi_driver.c4
-rw-r--r--drivers/input/touchscreen/rmi4/rmi_f01.c10
-rw-r--r--drivers/input/touchscreen/rmi4/rmi_f11.c12
-rw-r--r--drivers/input/touchscreen/rmi4/rmi_f34.c10
-rw-r--r--drivers/input/touchscreen/rmi4/rmi_f54.c10
5 files changed, 23 insertions, 23 deletions
diff --git a/drivers/input/touchscreen/rmi4/rmi_driver.c b/drivers/input/touchscreen/rmi4/rmi_driver.c
index 6aeb3b93b2c5..78b30095b086 100644
--- a/drivers/input/touchscreen/rmi4/rmi_driver.c
+++ b/drivers/input/touchscreen/rmi4/rmi_driver.c
@@ -106,9 +106,9 @@ static ssize_t rmi_delay_store(struct device *dev,
static struct device_attribute attrs[] = {
__ATTR(hasbsr, RMI_RO_ATTR,
rmi_driver_hasbsr_show, rmi_store_error),
- __ATTR(bsr, RMI_RW_ATTR,
+ __ATTR(bsr, RMI_RO_ATTR,
rmi_driver_bsr_show, rmi_driver_bsr_store),
- __ATTR(enabled, RMI_RW_ATTR,
+ __ATTR(enabled, RMI_RO_ATTR,
rmi_driver_enabled_show, rmi_driver_enabled_store),
__ATTR(phys, RMI_RO_ATTR,
rmi_driver_phys_show, rmi_store_error),
diff --git a/drivers/input/touchscreen/rmi4/rmi_f01.c b/drivers/input/touchscreen/rmi4/rmi_f01.c
index ef9adb0586b9..6ccdf2443609 100644
--- a/drivers/input/touchscreen/rmi4/rmi_f01.c
+++ b/drivers/input/touchscreen/rmi4/rmi_f01.c
@@ -187,13 +187,13 @@ static struct device_attribute fn_01_attrs[] = {
rmi_fn_01_datecode_show, rmi_store_error),
/* control register access */
- __ATTR(sleepmode, RMI_RW_ATTR,
+ __ATTR(sleepmode, RMI_RO_ATTR,
rmi_fn_01_sleepmode_show, rmi_fn_01_sleepmode_store),
- __ATTR(nosleep, RMI_RW_ATTR,
+ __ATTR(nosleep, RMI_RO_ATTR,
rmi_fn_01_nosleep_show, rmi_fn_01_nosleep_store),
- __ATTR(chargerinput, RMI_RW_ATTR,
+ __ATTR(chargerinput, RMI_RO_ATTR,
rmi_fn_01_chargerinput_show, rmi_fn_01_chargerinput_store),
- __ATTR(reportrate, RMI_RW_ATTR,
+ __ATTR(reportrate, RMI_RO_ATTR,
rmi_fn_01_reportrate_show, rmi_fn_01_reportrate_store),
/* We make report rate RO, since the driver uses that to look for
* resets. We don't want someone faking us out by changing that
@@ -203,7 +203,7 @@ static struct device_attribute fn_01_attrs[] = {
rmi_fn_01_configured_show, rmi_store_error),
/* Command register access. */
- __ATTR(reset, RMI_WO_ATTR,
+ __ATTR(reset, RMI_RO_ATTR,
rmi_show_error, rmi_fn_01_reset_store),
/* STatus register access. */
diff --git a/drivers/input/touchscreen/rmi4/rmi_f11.c b/drivers/input/touchscreen/rmi4/rmi_f11.c
index 35bb945143de..7530720d61f1 100644
--- a/drivers/input/touchscreen/rmi4/rmi_f11.c
+++ b/drivers/input/touchscreen/rmi4/rmi_f11.c
@@ -99,15 +99,15 @@ static ssize_t rmi_f11_rezero_store(struct device *dev,
static struct device_attribute attrs[] = {
- __ATTR(flip, RMI_RW_ATTR, rmi_fn_11_flip_show, rmi_fn_11_flip_store),
- __ATTR(clip, RMI_RW_ATTR, rmi_fn_11_clip_show, rmi_fn_11_clip_store),
- __ATTR(offset, RMI_RW_ATTR,
+ __ATTR(flip, RMI_RO_ATTR, rmi_fn_11_flip_show, rmi_fn_11_flip_store),
+ __ATTR(clip, RMI_RO_ATTR, rmi_fn_11_clip_show, rmi_fn_11_clip_store),
+ __ATTR(offset, RMI_RO_ATTR,
rmi_fn_11_offset_show, rmi_fn_11_offset_store),
- __ATTR(swap, RMI_RW_ATTR, rmi_fn_11_swap_show, rmi_fn_11_swap_store),
- __ATTR(relreport, RMI_RW_ATTR,
+ __ATTR(swap, RMI_RO_ATTR, rmi_fn_11_swap_show, rmi_fn_11_swap_store),
+ __ATTR(relreport, RMI_RO_ATTR,
rmi_fn_11_relreport_show, rmi_fn_11_relreport_store),
__ATTR(maxPos, RMI_RO_ATTR, rmi_fn_11_maxPos_show, rmi_store_error),
- __ATTR(rezero, RMI_WO_ATTR, rmi_show_error, rmi_f11_rezero_store)
+ __ATTR(rezero, RMI_RO_ATTR, rmi_show_error, rmi_f11_rezero_store)
};
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,
diff --git a/drivers/input/touchscreen/rmi4/rmi_f54.c b/drivers/input/touchscreen/rmi4/rmi_f54.c
index 11bb0b934bef..f4f2e3ac2903 100644
--- a/drivers/input/touchscreen/rmi4/rmi_f54.c
+++ b/drivers/input/touchscreen/rmi4/rmi_f54.c
@@ -303,11 +303,11 @@ static ssize_t rmi_fn_54_fifoindex_store(struct device *dev,
const char *buf, size_t count);
static struct device_attribute attrs[] = {
- __ATTR(report_type, RMI_RW_ATTR,
+ __ATTR(report_type, RMI_RO_ATTR,
rmi_fn_54_report_type_show, rmi_fn_54_report_type_store),
- __ATTR(get_report, RMI_WO_ATTR,
+ __ATTR(get_report, RMI_RO_ATTR,
rmi_show_error, rmi_fn_54_get_report_store),
- __ATTR(force_cal, RMI_WO_ATTR,
+ __ATTR(force_cal, RMI_RO_ATTR,
rmi_show_error, rmi_fn_54_force_cal_store),
__ATTR(status, RMI_RO_ATTR,
rmi_fn_54_status_show, rmi_store_error),
@@ -358,9 +358,9 @@ static struct device_attribute attrs[] = {
rmi_fn_54_has_perf_frequency_noisecontrol_show, rmi_store_error),
__ATTR(number_of_sensing_frequencies, RMI_RO_ATTR,
rmi_fn_54_number_of_sensing_frequencies_show, rmi_store_error),
- __ATTR(no_auto_cal, RMI_RW_ATTR,
+ __ATTR(no_auto_cal, RMI_RO_ATTR,
rmi_fn_54_no_auto_cal_show, rmi_fn_54_no_auto_cal_store),
- __ATTR(fifoindex, RMI_RW_ATTR,
+ __ATTR(fifoindex, RMI_RO_ATTR,
rmi_fn_54_fifoindex_show, rmi_fn_54_fifoindex_store),
};