mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Power: Changes the permission to read only for sysfs file
/sys/kernel/wakeup_reasons/last_resume_reason Change-Id: If25e8e416ee9726996518b58b6551a61dc1591e3 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
This commit is contained in:
parent
9041172907
commit
451076288b
1 changed files with 2 additions and 3 deletions
|
@ -34,7 +34,7 @@ static int irq_count;
|
|||
static struct kobject *wakeup_reason;
|
||||
static spinlock_t resume_reason_lock;
|
||||
|
||||
static ssize_t reason_show(struct kobject *kobj, struct kobj_attribute *attr,
|
||||
static ssize_t last_resume_reason_show(struct kobject *kobj, struct kobj_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
int irq_no, buf_offset = 0;
|
||||
|
@ -53,8 +53,7 @@ static ssize_t reason_show(struct kobject *kobj, struct kobj_attribute *attr,
|
|||
return buf_offset;
|
||||
}
|
||||
|
||||
static struct kobj_attribute resume_reason = __ATTR(last_resume_reason, 0666,
|
||||
reason_show, NULL);
|
||||
static struct kobj_attribute resume_reason = __ATTR_RO(last_resume_reason);
|
||||
|
||||
static struct attribute *attrs[] = {
|
||||
&resume_reason.attr,
|
||||
|
|
Loading…
Reference in a new issue