lkml.org 
[lkml]   [2010]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 43/45] kstrtox: convert drivers/w1/
    Date

    Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
    ---
    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.2.2


    \
     
     \ /
      Last update: 2010-12-05 18:57    [W:0.027 / U:30.800 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site