diff --git a/soft_pwm.c b/soft_pwm.c index a75eb96..7a3ffd4 100644 --- a/soft_pwm.c +++ b/soft_pwm.c @@ -98,7 +98,7 @@ static ssize_t pwm_store( status = -EIO; }else{ unsigned long value; - status = strict_strtoul(buf, 0, &value); + status = strict_strtol(buf, 0, &value); if(status==0){ if(strcmp(attr->attr.name, "pulse")==0){ if(value<=desc->period){ desc->pulse = (unsigned int)value; }