projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8757a08
)
ab8500-chargalg: Only root should have write permission on sysfs file
author
Lee Jones
<lee.jones@linaro.org>
Thu, 17 Jan 2013 14:21:53 +0000
(14:21 +0000)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 23 Jan 2013 14:39:15 +0000
(14:39 +0000)
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>
drivers/power/abx500_chargalg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/abx500_chargalg.c
b/drivers/power/abx500_chargalg.c
index 2463fa01d63f078655fa773d9ed9e61cad68bbde..f59bc025ca58be8a6b5fdd094331874bf9d31469 100644
(file)
--- 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_IWU
GO
,
+ .mode = S_IWU
SR
,
};
static struct attribute *abx500_chargalg_chg[] = {