summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2012-04-24 09:48:52 +0800
committerXinyu Chen <xinyu.chen@freescale.com>2012-04-24 09:48:52 +0800
commit1fab4e499f7db3cb19bafe92c37b684fe434ce1e (patch)
tree155b1de0c72825114aa7876b5df19f2c7cb9890e /drivers/regulator
parentb0cf397cecdecc102b82fc844b7a9e098d841187 (diff)
ENGR00180617 cts: disallow other group's write permission in /sys files
Android compatible test verifys all the files in /sys dir. It will report failure when found there's any files has S_IWOTH permission. These changed sysfs are originally changed or add by freescale. So it's not a common kernel code issue. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index bffd22fd415c..0a6deb268b38 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -291,7 +291,7 @@ static ssize_t regulator_uV_store(struct device *dev,
return count;
}
-static DEVICE_ATTR(microvolts, 0666, regulator_uV_show, regulator_uV_store);
+static DEVICE_ATTR(microvolts, 0664, regulator_uV_show, regulator_uV_store);
static ssize_t regulator_uA_show(struct device *dev,
struct device_attribute *attr, char *buf)