diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-01-17 09:21:53 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-01-23 09:39:15 -0500 |
commit | e3455002d04276c256a531f7175dce0f7d1cb78a (patch) | |
tree | 555460f03fed822ace1d79e38c3b2dd1563ba9d7 | |
parent | 8757a08ea2dfe1824c19ed1c17b307e77a91ec82 (diff) |
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>
-rw-r--r-- | drivers/power/abx500_chargalg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c index 2463fa01d63f..f59bc025ca58 100644 --- a/drivers/power/abx500_chargalg.c +++ b/drivers/power/abx500_chargalg.c | |||
@@ -1711,7 +1711,7 @@ static ssize_t abx500_chargalg_sysfs_charger(struct kobject *kobj, | |||
1711 | static struct attribute abx500_chargalg_en_charger = \ | 1711 | static struct attribute abx500_chargalg_en_charger = \ |
1712 | { | 1712 | { |
1713 | .name = "chargalg", | 1713 | .name = "chargalg", |
1714 | .mode = S_IWUGO, | 1714 | .mode = S_IWUSR, |
1715 | }; | 1715 | }; |
1716 | 1716 | ||
1717 | static struct attribute *abx500_chargalg_chg[] = { | 1717 | static struct attribute *abx500_chargalg_chg[] = { |