Patches are removed from the already-upstream queue only by rebase,
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / releases / upstream / 2.6.24-rc1 / 0013-ACPI-thinkpad-acpi-skip-blanks-before-the-data-whe.patch
blob0d289288733744962eed21096b9eaa4139f7b26d
1 From 32afbf07aa53120c0e3fe1881b948ded99f4fc35 Mon Sep 17 00:00:00 2001
2 From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
3 Date: Mon, 8 Oct 2007 10:12:56 -0300
4 Subject: [PATCH 13/23] ACPI: thinkpad-acpi: skip blanks before the data when parsing sysfs
6 Skip blanks not just at the tail of sysfs writes, but also at the head.
8 Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
9 Signed-off-by: Len Brown <len.brown@intel.com>
10 ---
11 drivers/misc/thinkpad_acpi.c | 2 ++
12 1 files changed, 2 insertions(+), 0 deletions(-)
14 diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
15 index 81693b4..37891a8 100644
16 --- a/drivers/misc/thinkpad_acpi.c
17 +++ b/drivers/misc/thinkpad_acpi.c
18 @@ -709,6 +709,8 @@ static int parse_strtoul(const char *buf,
20 char *endp;
22 + while (*buf && isspace(*buf))
23 + buf++;
24 *value = simple_strtoul(buf, &endp, 0);
25 while (*endp && isspace(*endp))
26 endp++;
27 --
28 1.5.3.4