diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2012-02-02 15:35:03 -0800 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-02-10 08:37:00 -0800 |
commit | ab0a38df23c327f5dff71c965969a8fcfcf44f2c (patch) | |
tree | 2c4c5ba88f9a872fb3f0471bb058682a6210f080 /drivers/input/touchscreen/atmel_mxt_ts.c | |
parent | 23020fcc789f595cabb41beea625910fef227b09 (diff) |
input: touchscreen: atmel_mxt_ts: Change mem_access permissions
Take off the world-write bit from the default permissions for the
mem_access debug node. The init scripts will make it accessible on
engineering builds.
Bug 906796
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/79095
(cherry picked from commit a6ba61cc290bebb5dd16e4ad02cd1e8b3b9802b2)
Change-Id: I3e118dd502aa8912ad5fcb8452105c7f5f1c833a
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/82725
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers/input/touchscreen/atmel_mxt_ts.c')
-rw-r--r-- | drivers/input/touchscreen/atmel_mxt_ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index ca8605b70a30..c7c705547e21 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -1677,7 +1677,7 @@ static int __devinit mxt_probe(struct i2c_client *client, sysfs_bin_attr_init(&data->mem_access_attr); data->mem_access_attr.attr.name = "mem_access"; - data->mem_access_attr.attr.mode = S_IRUGO | S_IWUGO; + data->mem_access_attr.attr.mode = S_IRUGO | S_IWUSR | S_IWGRP; data->mem_access_attr.read = mxt_mem_access_read; data->mem_access_attr.write = mxt_mem_access_write; data->mem_access_attr.size = 65535; |