summaryrefslogtreecommitdiffstats
path: root/drivers/power/abx500_chargalg.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-01-17 14:21:53 +0000
committerLee Jones <lee.jones@linaro.org>2013-01-23 14:39:15 +0000
commite3455002d04276c256a531f7175dce0f7d1cb78a (patch)
tree555460f03fed822ace1d79e38c3b2dd1563ba9d7 /drivers/power/abx500_chargalg.c
parent8757a08ea2dfe1824c19ed1c17b307e77a91ec82 (diff)
downloadblackbird-op-linux-e3455002d04276c256a531f7175dce0f7d1cb78a.tar.gz
blackbird-op-linux-e3455002d04276c256a531f7175dce0f7d1cb78a.zip
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>
Diffstat (limited to 'drivers/power/abx500_chargalg.c')
-rw-r--r--drivers/power/abx500_chargalg.c2
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,
static struct attribute abx500_chargalg_en_charger = \
{
.name = "chargalg",
- .mode = S_IWUGO,
+ .mode = S_IWUSR,
};
static struct attribute *abx500_chargalg_chg[] = {
OpenPOWER on IntegriCloud