Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3455002 authored by Lee Jones's avatar Lee Jones
Browse files

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



Only root should have write permission on sysfs file ab8500_chargalg/chargalg.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 8757a08e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1711,7 +1711,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[] = {