Skip to content

Commit

Permalink
Input: ads7846 - strict_strtoul takes unsigned long
Browse files Browse the repository at this point in the history
Fix sparse warning introduced by:
commit 160f1fe Input: convert drivers to use strict_strtoul()

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Harvey Harrison authored and Dmitry Torokhov committed Dec 23, 2008
1 parent 0de048a commit 3a0c58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/ads7846.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3a0c58d

Please sign in to comment.