summaryrefslogtreecommitdiffstats
path: root/drivers/power/abx500_chargalg.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-01-17 15:21:53 +0100
committerLee Jones <lee.jones@linaro.org>2013-01-23 15:39:15 +0100
commite3455002d04276c256a531f7175dce0f7d1cb78a (patch)
tree555460f03fed822ace1d79e38c3b2dd1563ba9d7 /drivers/power/abx500_chargalg.c
parentpm2301: Remove volt_now & curr_now properties (diff)
downloadlinux-e3455002d04276c256a531f7175dce0f7d1cb78a.tar.xz
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[] = {