[PATCH 42/52] kstrtox: convert drivers/w1/

From: Alexey Dobriyan
Date: Sat Feb 05 2011 - 09:22:55 EST



Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---
drivers/w1/w1.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index b7b5014..cd3d308 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -233,10 +233,10 @@ static ssize_t w1_master_attribute_store_search(struct device * dev,
struct device_attribute *attr,
const char * buf, size_t count)
{
- long tmp;
struct w1_master *md = dev_to_w1_master(dev);
+ int tmp;

- if (strict_strtol(buf, 0, &tmp) == -EINVAL)
+ if (kstrtoint(buf, 0, &tmp) < 0)
return -EINVAL;

mutex_lock(&md->mutex);
@@ -265,10 +265,10 @@ static ssize_t w1_master_attribute_store_pullup(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{
- long tmp;
struct w1_master *md = dev_to_w1_master(dev);
+ int tmp;

- if (strict_strtol(buf, 0, &tmp) == -EINVAL)
+ if (kstrtoint(buf, 0, &tmp) < 0)
return -EINVAL;

mutex_lock(&md->mutex);
--
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/