net: can: replace strict_strtoul() with kstrtoul()
authorJingoo Han <jg1.han@samsung.com>
Fri, 31 May 2013 21:18:55 +0000 (21:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2013 07:39:46 +0000 (00:39 -0700)
The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/at91_can.c
drivers/net/can/janz-ican3.c
drivers/net/can/slcan.c
drivers/net/can/softing/softing_main.c

index 556656661d6b6e7ebc596becd1e0e7cb5467482a..ce8421ac453a4d5a0252b1b0e6b4d87e6acb6f91 100644 (file)
@@ -1220,7 +1220,7 @@ static ssize_t at91_sysfs_set_mb0_id(struct device *dev,
                goto out;
        }
 
-       err = strict_strtoul(buf, 0, &can_id);
+       err = kstrtoul(buf, 0, &can_id);
        if (err) {
                ret = err;
                goto out;
index c4bc1d2e2033214db1a20ff584d184f35d8635ec..36bd6fa1c7f3e4760b5f69f65b420f8d55b66a5f 100644 (file)
@@ -1734,7 +1734,7 @@ static ssize_t ican3_sysfs_set_term(struct device *dev,
        unsigned long enable;
        int ret;
 
-       if (strict_strtoul(buf, 0, &enable))
+       if (kstrtoul(buf, 0, &enable))
                return -EINVAL;
 
        ret = ican3_set_termination(mod, enable);
index 06b7e097d36e5ed3117e9d1dc8258ee74d51c6be..874188ba06f7172fed36b93db05be06ae0e2bd59 100644 (file)
@@ -161,7 +161,7 @@ static void slc_bump(struct slcan *sl)
 
        sl->rbuff[dlc_pos] = 0; /* terminate can_id string */
 
-       if (strict_strtoul(sl->rbuff+1, 16, &ultmp))
+       if (kstrtoul(sl->rbuff+1, 16, &ultmp))
                return;
 
        cf.can_id = ultmp;
index 3a2b45601ec29d69f07ec4dab98425ebb09add15..65eef1eea2e2434ca47cfeb086095a415d2b385e 100644 (file)
@@ -594,7 +594,7 @@ static ssize_t store_output(struct device *dev, struct device_attribute *attr,
        unsigned long val;
        int ret;
 
-       ret = strict_strtoul(buf, 0, &val);
+       ret = kstrtoul(buf, 0, &val);
        if (ret < 0)
                return ret;
        val &= 0xFF;