]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Input: ads7846 - strict_strtoul takes unsigned long
authorHarvey Harrison <harvey.harrison@gmail.com>
Tue, 23 Dec 2008 09:09:28 +0000 (04:09 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 23 Dec 2008 09:36:44 +0000 (04:36 -0500)
Fix sparse warning introduced by:
commit 160f1fef7e52e974489b3c70fbd4e094c06965c2 Input: convert drivers to use strict_strtoul()

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ads7846.c

index 6017ea6e994e42d3b094e45e5e219dfee7bfb3c4..d0004dc44c86c4f62d65dfdae354177372e95529 100644 (file)
@@ -472,7 +472,7 @@ static ssize_t ads7846_disable_store(struct device *dev,
                                     const char *buf, size_t count)
 {
        struct ads7846 *ts = dev_get_drvdata(dev);
-       long i;
+       unsigned long i;
 
        if (strict_strtoul(buf, 10, &i))
                return -EINVAL;