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: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
Lee Jones 2013-01-17 14:21:53 +00:00
Родитель 8757a08ea2
Коммит e3455002d0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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[] = {