Skip to contentSkip to conversation

input: strict_strtoul takes unsigned long

PATCH Applied Harvey Harrison 2 participants 2 messages Dec 2, 2008 – Dec 23, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: strict_strtoul takes unsigned long

Fix sparse warning introduced by:
commit 160f1fef7e52e974489b3c70fbd4e094c06965c2 Input: convert drivers to use strict_strtoul()

---
Just noticed this while fixing the lock annotation patch.

 drivers/input/touchscreen/ads7846.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/touchscreen/ads7846.c +1 -1
index 77ac820..f695b0b 100644
@@ -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;
Signature · 1 line
1.6.1.rc1.262.gb6810
maintainer Applied
#1 lore raw
Quoted 3 lines · Harvey Harrison

Fix sparse warning introduced by:
commit 160f1fef7e52e974489b3c70fbd4e094c06965c2 Input: convert drivers to use strict_strtoul()

Applied, thank you Harvey.

Signature · 1 line
Dmitry