|
@@ -2301,7 +2301,7 @@ out:
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-static DEVICE_ATTR(stat_status, S_IWUGO | S_IRUGO, read_status, reboot);
|
|
|
|
|
|
+static DEVICE_ATTR(stat_status, S_IWUSR | S_IRUGO, read_status, reboot);
|
|
|
|
|
|
static ssize_t read_human_status(struct device *dev,
|
|
static ssize_t read_human_status(struct device *dev,
|
|
struct device_attribute *attr, char *buf)
|
|
struct device_attribute *attr, char *buf)
|
|
@@ -2364,8 +2364,7 @@ out:
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-static DEVICE_ATTR(stat_human_status, S_IWUGO | S_IRUGO,
|
|
|
|
- read_human_status, NULL);
|
|
|
|
|
|
+static DEVICE_ATTR(stat_human_status, S_IRUGO, read_human_status, NULL);
|
|
|
|
|
|
static ssize_t read_delin(struct device *dev, struct device_attribute *attr,
|
|
static ssize_t read_delin(struct device *dev, struct device_attribute *attr,
|
|
char *buf)
|
|
char *buf)
|
|
@@ -2397,7 +2396,7 @@ out:
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-static DEVICE_ATTR(stat_delin, S_IWUGO | S_IRUGO, read_delin, NULL);
|
|
|
|
|
|
+static DEVICE_ATTR(stat_delin, S_IRUGO, read_delin, NULL);
|
|
|
|
|
|
#define UEA_ATTR(name, reset) \
|
|
#define UEA_ATTR(name, reset) \
|
|
\
|
|
\
|