From 4406ee05c958658c7b1bb801e51ce6a1d623b1e5 Mon Sep 17 00:00:00 2001 From: zhanghao Date: Mon, 26 Mar 2012 15:48:02 +0800 Subject: [PATCH] Revert "modify some file permissions for cts" This reverts commit ca7d682aabed6f5a898ff3eb1b0eb4446052bdc4. --- drivers/cmmb/cmmb_class.c | 2 +- drivers/input/gsensor/bma023.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/cmmb/cmmb_class.c b/drivers/cmmb/cmmb_class.c index b9d99a05f137..794db94004d4 100755 --- a/drivers/cmmb/cmmb_class.c +++ b/drivers/cmmb/cmmb_class.c @@ -186,7 +186,7 @@ ssize_t cmmb_class_show_name(struct class * class, char * buf, size_t count, lof } -static CLASS_ATTR(name, 0660, cmmb_class_show_name, NULL); +static CLASS_ATTR(name, 0777, cmmb_class_show_name, NULL); static int __init init_cmmbclass(void) { diff --git a/drivers/input/gsensor/bma023.c b/drivers/input/gsensor/bma023.c index 4c2aa91efe9b..4fe4f4979d60 100755 --- a/drivers/input/gsensor/bma023.c +++ b/drivers/input/gsensor/bma023.c @@ -672,17 +672,17 @@ static ssize_t bma150_enable_store(struct device *dev, return count; } -static DEVICE_ATTR(range, S_IRUGO, +static DEVICE_ATTR(range, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH, bma150_range_show, bma150_range_store); -static DEVICE_ATTR(bandwidth, S_IRUGO, +static DEVICE_ATTR(bandwidth, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH, bma150_bandwidth_show, bma150_bandwidth_store); -static DEVICE_ATTR(mode, S_IRUGO, +static DEVICE_ATTR(mode, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH, bma150_mode_show, bma150_mode_store); -static DEVICE_ATTR(value, S_IRUGO, +static DEVICE_ATTR(value, S_IRUGO|S_IWUSR|S_IWGRP, bma150_value_show, NULL); -static DEVICE_ATTR(delay, S_IRUGO, +static DEVICE_ATTR(delay, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH, bma150_delay_show, bma150_delay_store); -static DEVICE_ATTR(enable, S_IRUGO, +static DEVICE_ATTR(enable, S_IRUGO|S_IWUSR|S_IWGRP|S_IWOTH, bma150_enable_show, bma150_enable_store); static struct attribute *bma150_attributes[] = { -- 2.34.1