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:
b28a960
)
ACPI / SBS: Fix incorrect sscanf() string
author
Luis G.F
<luisgf@luisgf.es>
Mon, 10 Feb 2014 10:36:42 +0000
(11:36 +0100)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Thu, 13 Feb 2014 14:18:37 +0000
(15:18 +0100)
Fix incorrect sscanf() string in function acpi_battery_alarm_store().
Signed-off-by: Luis G.F <luisgf@luisgf.es>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sbs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/sbs.c
b/drivers/acpi/sbs.c
index d465ae6cdd004b9813cc333529c54ef29abcb16f..02d0c21b807e64b54a6e96a3978b41df53cf1558 100644
(file)
--- a/
drivers/acpi/sbs.c
+++ b/
drivers/acpi/sbs.c
@@
-450,7
+450,7
@@
static ssize_t acpi_battery_alarm_store(struct device *dev,
{
unsigned long x;
struct acpi_battery *battery = to_acpi_battery(dev_get_drvdata(dev));
- if (sscanf(buf, "%l
d
\n", &x) == 1)
+ if (sscanf(buf, "%l
u
\n", &x) == 1)
battery->alarm_capacity = x /
(1000 * acpi_battery_scale(battery));
if (battery->present)