Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280584
b: refs/heads/master
c: 179c4fd
h: refs/heads/master
v: v3
  • Loading branch information
Frans Meulenbroeks authored and Guenter Roeck committed Jan 5, 2012
1 parent 35d85f5 commit f3ed0ff
Show file tree
Hide file tree
Showing 38 changed files with 182 additions and 182 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24edc0a71badc13a9574b060e6a22e78339ac7a4
refs/heads/master: 179c4fdb565dd2157e5dfe89318b74868e3b523d
6 changes: 3 additions & 3 deletions trunk/drivers/hwmon/acpi_power_meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static ssize_t set_avg_interval(struct device *dev,
unsigned long long data;
acpi_status status;

res = strict_strtoul(buf, 10, &temp);
res = kstrtoul(buf, 10, &temp);
if (res)
return res;

Expand Down Expand Up @@ -241,7 +241,7 @@ static ssize_t set_cap(struct device *dev, struct device_attribute *devattr,
unsigned long long data;
acpi_status status;

res = strict_strtoul(buf, 10, &temp);
res = kstrtoul(buf, 10, &temp);
if (res)
return res;

Expand Down Expand Up @@ -311,7 +311,7 @@ static ssize_t set_trip(struct device *dev, struct device_attribute *devattr,
int res;
unsigned long temp;

res = strict_strtoul(buf, 10, &temp);
res = kstrtoul(buf, 10, &temp);
if (res)
return res;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/hwmon/adcxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static ssize_t adcxx_set_max(struct device *dev,
struct adcxx *adc = spi_get_drvdata(spi);
unsigned long value;

if (strict_strtoul(buf, 10, &value))
if (kstrtoul(buf, 10, &value))
return -EINVAL;

if (mutex_lock_interruptible(&adc->lock))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/hwmon/adm1031.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ static ssize_t set_update_interval(struct device *dev,
int i, err;
u8 reg;

err = strict_strtoul(buf, 10, &val);
err = kstrtoul(buf, 10, &val);
if (err)
return err;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/hwmon/adm9240.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ static ssize_t chassis_clear(struct device *dev,
struct adm9240_data *data = i2c_get_clientdata(client);
unsigned long val;

if (strict_strtoul(buf, 10, &val) || val != 0)
if (kstrtoul(buf, 10, &val) || val != 0)
return -EINVAL;

mutex_lock(&data->update_lock);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/hwmon/adt7411.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static ssize_t adt7411_set_bit(struct device *dev,
int ret;
unsigned long flag;

ret = strict_strtoul(buf, 0, &flag);
ret = kstrtoul(buf, 0, &flag);
if (ret || flag > 1)
return -EINVAL;

Expand Down
28 changes: 14 additions & 14 deletions trunk/drivers/hwmon/adt7462.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ static ssize_t set_temp_min(struct device *dev,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp) || !temp_enabled(data, attr->index))
if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index))
return -EINVAL;

temp = DIV_ROUND_CLOSEST(temp, 1000) + 64;
Expand Down Expand Up @@ -871,7 +871,7 @@ static ssize_t set_temp_max(struct device *dev,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp) || !temp_enabled(data, attr->index))
if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index))
return -EINVAL;

temp = DIV_ROUND_CLOSEST(temp, 1000) + 64;
Expand Down Expand Up @@ -935,7 +935,7 @@ static ssize_t set_volt_max(struct device *dev,
int x = voltage_multiplier(data, attr->index);
long temp;

if (strict_strtol(buf, 10, &temp) || !x)
if (kstrtol(buf, 10, &temp) || !x)
return -EINVAL;

temp *= 1000; /* convert mV to uV */
Expand Down Expand Up @@ -977,7 +977,7 @@ static ssize_t set_volt_min(struct device *dev,
int x = voltage_multiplier(data, attr->index);
long temp;

if (strict_strtol(buf, 10, &temp) || !x)
if (kstrtol(buf, 10, &temp) || !x)
return -EINVAL;

temp *= 1000; /* convert mV to uV */
Expand Down Expand Up @@ -1066,7 +1066,7 @@ static ssize_t set_fan_min(struct device *dev,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp) || !temp ||
if (kstrtol(buf, 10, &temp) || !temp ||
!fan_enabled(data, attr->index))
return -EINVAL;

Expand Down Expand Up @@ -1115,7 +1115,7 @@ static ssize_t set_force_pwm_max(struct device *dev,
long temp;
u8 reg;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

mutex_lock(&data->lock);
Expand Down Expand Up @@ -1147,7 +1147,7 @@ static ssize_t set_pwm(struct device *dev, struct device_attribute *devattr,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = SENSORS_LIMIT(temp, 0, 255);
Expand Down Expand Up @@ -1177,7 +1177,7 @@ static ssize_t set_pwm_max(struct device *dev,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = SENSORS_LIMIT(temp, 0, 255);
Expand Down Expand Up @@ -1209,7 +1209,7 @@ static ssize_t set_pwm_min(struct device *dev,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = SENSORS_LIMIT(temp, 0, 255);
Expand Down Expand Up @@ -1243,7 +1243,7 @@ static ssize_t set_pwm_hyst(struct device *dev,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = DIV_ROUND_CLOSEST(temp, 1000);
Expand Down Expand Up @@ -1289,7 +1289,7 @@ static ssize_t set_pwm_tmax(struct device *dev,
int tmin, trange_value;
long trange;

if (strict_strtol(buf, 10, &trange))
if (kstrtol(buf, 10, &trange))
return -EINVAL;

/* trange = tmax - tmin */
Expand Down Expand Up @@ -1330,7 +1330,7 @@ static ssize_t set_pwm_tmin(struct device *dev,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = DIV_ROUND_CLOSEST(temp, 1000) + 64;
Expand Down Expand Up @@ -1387,7 +1387,7 @@ static ssize_t set_pwm_auto(struct device *dev,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

switch (temp) {
Expand Down Expand Up @@ -1446,7 +1446,7 @@ static ssize_t set_pwm_auto_temp(struct device *dev,
struct adt7462_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = cvt_auto_temp(temp);
Expand Down
26 changes: 13 additions & 13 deletions trunk/drivers/hwmon/adt7470.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static ssize_t set_auto_update_interval(struct device *dev,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = SENSORS_LIMIT(temp, 0, 60000);
Expand Down Expand Up @@ -478,7 +478,7 @@ static ssize_t set_num_temp_sensors(struct device *dev,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = SENSORS_LIMIT(temp, -1, 10);
Expand Down Expand Up @@ -511,7 +511,7 @@ static ssize_t set_temp_min(struct device *dev,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = DIV_ROUND_CLOSEST(temp, 1000);
Expand Down Expand Up @@ -545,7 +545,7 @@ static ssize_t set_temp_max(struct device *dev,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = DIV_ROUND_CLOSEST(temp, 1000);
Expand Down Expand Up @@ -600,7 +600,7 @@ static ssize_t set_fan_max(struct device *dev,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp) || !temp)
if (kstrtol(buf, 10, &temp) || !temp)
return -EINVAL;

temp = FAN_RPM_TO_PERIOD(temp);
Expand Down Expand Up @@ -637,7 +637,7 @@ static ssize_t set_fan_min(struct device *dev,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp) || !temp)
if (kstrtol(buf, 10, &temp) || !temp)
return -EINVAL;

temp = FAN_RPM_TO_PERIOD(temp);
Expand Down Expand Up @@ -682,7 +682,7 @@ static ssize_t set_force_pwm_max(struct device *dev,
long temp;
u8 reg;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

mutex_lock(&data->lock);
Expand Down Expand Up @@ -714,7 +714,7 @@ static ssize_t set_pwm(struct device *dev, struct device_attribute *devattr,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = SENSORS_LIMIT(temp, 0, 255);
Expand Down Expand Up @@ -746,7 +746,7 @@ static ssize_t set_pwm_max(struct device *dev,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = SENSORS_LIMIT(temp, 0, 255);
Expand Down Expand Up @@ -779,7 +779,7 @@ static ssize_t set_pwm_min(struct device *dev,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = SENSORS_LIMIT(temp, 0, 255);
Expand Down Expand Up @@ -822,7 +822,7 @@ static ssize_t set_pwm_tmin(struct device *dev,
struct adt7470_data *data = i2c_get_clientdata(client);
long temp;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = DIV_ROUND_CLOSEST(temp, 1000);
Expand Down Expand Up @@ -859,7 +859,7 @@ static ssize_t set_pwm_auto(struct device *dev,
long temp;
u8 reg;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

if (attr->index % 2)
Expand Down Expand Up @@ -919,7 +919,7 @@ static ssize_t set_pwm_auto_temp(struct device *dev,
long temp;
u8 reg;

if (strict_strtol(buf, 10, &temp))
if (kstrtol(buf, 10, &temp))
return -EINVAL;

temp = cvt_auto_temp(temp);
Expand Down
20 changes: 10 additions & 10 deletions trunk/drivers/hwmon/adt7475.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static ssize_t set_voltage(struct device *dev, struct device_attribute *attr,
unsigned char reg;
long val;

if (strict_strtol(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;

mutex_lock(&data->lock);
Expand Down Expand Up @@ -432,7 +432,7 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *attr,
int temp;
long val;

if (strict_strtol(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;

mutex_lock(&data->lock);
Expand Down Expand Up @@ -546,7 +546,7 @@ static ssize_t set_point2(struct device *dev, struct device_attribute *attr,
int temp;
long val;

if (strict_strtol(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;

mutex_lock(&data->lock);
Expand Down Expand Up @@ -602,7 +602,7 @@ static ssize_t set_tach(struct device *dev, struct device_attribute *attr,
struct adt7475_data *data = i2c_get_clientdata(client);
unsigned long val;

if (strict_strtoul(buf, 10, &val))
if (kstrtoul(buf, 10, &val))
return -EINVAL;

mutex_lock(&data->lock);
Expand Down Expand Up @@ -653,7 +653,7 @@ static ssize_t set_pwm(struct device *dev, struct device_attribute *attr,
unsigned char reg = 0;
long val;

if (strict_strtol(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;

mutex_lock(&data->lock);
Expand Down Expand Up @@ -758,7 +758,7 @@ static ssize_t set_pwmchan(struct device *dev, struct device_attribute *attr,
int r;
long val;

if (strict_strtol(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;

mutex_lock(&data->lock);
Expand All @@ -781,7 +781,7 @@ static ssize_t set_pwmctrl(struct device *dev, struct device_attribute *attr,
int r;
long val;

if (strict_strtol(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;

mutex_lock(&data->lock);
Expand Down Expand Up @@ -819,7 +819,7 @@ static ssize_t set_pwmfreq(struct device *dev, struct device_attribute *attr,
int out;
long val;

if (strict_strtol(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;

out = find_nearest(val, pwmfreq_table, ARRAY_SIZE(pwmfreq_table));
Expand Down Expand Up @@ -853,7 +853,7 @@ static ssize_t set_pwm_at_crit(struct device *dev,
struct adt7475_data *data = i2c_get_clientdata(client);
long val;

if (strict_strtol(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;
if (val != 0 && val != 1)
return -EINVAL;
Expand Down Expand Up @@ -883,7 +883,7 @@ static ssize_t set_vrm(struct device *dev, struct device_attribute *devattr,
struct adt7475_data *data = dev_get_drvdata(dev);
long val;

if (strict_strtol(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;
if (val < 0 || val > 255)
return -EINVAL;
Expand Down
Loading

0 comments on commit f3ed0ff

Please sign in to comment.