Commit 71b9101a authored by Lee Jones's avatar Lee Jones Committed by Greg Kroah-Hartman

ab8500-chargalg: Only root should have write permission on sysfs file

commit e3455002 upstream.

Only root should have write permission on sysfs file ab8500_chargalg/chargalg.
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eddf61b2
......@@ -1698,7 +1698,7 @@ static ssize_t abx500_chargalg_sysfs_charger(struct kobject *kobj,
static struct attribute abx500_chargalg_en_charger = \
{
.name = "chargalg",
.mode = S_IWUGO,
.mode = S_IWUSR,
};
static struct attribute *abx500_chargalg_chg[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment