modify some file permissions for cts
authormmk <mmk@rock-chips.com>
Fri, 23 Mar 2012 07:06:52 +0000 (15:06 +0800)
committerzhanghao <zhanghao@rock-chips.com>
Fri, 23 Mar 2012 07:48:52 +0000 (15:48 +0800)
drivers/cmmb/cmmb_class.c
drivers/input/gsensor/bma023.c

index 794db94004d4daa3cfcae86d19a5841ac329886f..b9d99a05f137a8cf7f016d9e795cae27c49e4109 100755 (executable)
@@ -186,7 +186,7 @@ ssize_t cmmb_class_show_name(struct class * class, char * buf, size_t count, lof
        \r
 }  \r
 \r
-static CLASS_ATTR(name, 0777, cmmb_class_show_name, NULL);\r
+static CLASS_ATTR(name, 0660, cmmb_class_show_name, NULL);
 \r
 static int __init init_cmmbclass(void)\r
 {\r
index 4fe4f4979d607a9304e782a774ce86df49b95d0b..4c2aa91efe9bece6ce2fd807fa9645e4b28c1460 100755 (executable)
@@ -672,17 +672,17 @@ static ssize_t bma150_enable_store(struct device *dev,
        return count;
 }
 
-static DEVICE_ATTR(range, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH,
+static DEVICE_ATTR(range, S_IRUGO,
                bma150_range_show, bma150_range_store);
-static DEVICE_ATTR(bandwidth, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH,
+static DEVICE_ATTR(bandwidth, S_IRUGO,
                bma150_bandwidth_show, bma150_bandwidth_store);
-static DEVICE_ATTR(mode, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH,
+static DEVICE_ATTR(mode, S_IRUGO,
                bma150_mode_show, bma150_mode_store);
-static DEVICE_ATTR(value, S_IRUGO|S_IWUSR|S_IWGRP,
+static DEVICE_ATTR(value, S_IRUGO,
                bma150_value_show, NULL);
-static DEVICE_ATTR(delay, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH,
+static DEVICE_ATTR(delay, S_IRUGO,
                bma150_delay_show, bma150_delay_store);
-static DEVICE_ATTR(enable, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH,
+static DEVICE_ATTR(enable, S_IRUGO,
                bma150_enable_show, bma150_enable_store);
 
 static struct attribute *bma150_attributes[] = {