Skip to content

Commit

Permalink
Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/groeck/linux-staging

* 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
  max1111.c: fix checkpatch warning
  hwmon: (lm75) fix checkpatch warnings
  hwmon: (lm80) fix checkpatch messages
  hwmon: replaced strict_str* with kstr*
  hwmon: (lm75) fix checkpatch warning
  hwmon: (lm75) added error handling
  hwmon: (ltc4261) set data->valid to 0 if error
  hwmon: (f75375s) Add support for F75387SG/RG
  hwmon: (f75375s) Disable setting DC fan control mode for F75373
  hwmon: (f75375s) Initialize pwmX_mode and pwmX_enable if there is no platform data
  hwmon: (f75375s) Fix value range for PWM modes
  hwmon: (f75375s) Use standard sysfs attribute names
  hwmon: (f75375s) Fix checkpatch errors and warnings
  hwmon: (pmbus/zl6100) Only instantiate external temperature sensor if enabled
  hwmon: (pmbus/zl6100) Add support for Ericsson BMR45[0,1] and BMR46[2,3,4]
  hwmon: (pmbus/zl6100) Add support for ZL2005
  hwmon: (pmbus/adm1275) Validate device ID
  • Loading branch information
Linus Torvalds committed Jan 8, 2012
2 parents b7d845f + 91c8eab commit 6950d76
Show file tree
Hide file tree
Showing 50 changed files with 588 additions and 335 deletions.
5 changes: 2 additions & 3 deletions Documentation/hwmon/pmbus
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ Kernel driver pmbus
====================

Supported chips:
* Ericsson BMR45X series
DC/DC Converter
Prefixes: 'bmr450', 'bmr451', 'bmr453', 'bmr454'
* Ericsson BMR453, BMR454
Prefixes: 'bmr453', 'bmr454'
Addresses scanned: -
Datasheet:
http://archive.ericsson.net/service/internet/picov/get?DocNo=28701-EN/LZT146395
Expand Down
15 changes: 15 additions & 0 deletions Documentation/hwmon/zl6100
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Supported chips:
Prefix: 'zl2004'
Addresses scanned: -
Datasheet: http://www.intersil.com/data/fn/fn6847.pdf
* Intersil / Zilker Labs ZL2005
Prefix: 'zl2005'
Addresses scanned: -
Datasheet: http://www.intersil.com/data/fn/fn6848.pdf
* Intersil / Zilker Labs ZL2006
Prefix: 'zl2006'
Addresses scanned: -
Expand All @@ -30,6 +34,17 @@ Supported chips:
Prefix: 'zl6105'
Addresses scanned: -
Datasheet: http://www.intersil.com/data/fn/fn6906.pdf
* Ericsson BMR450, BMR451
Prefix: 'bmr450', 'bmr451'
Addresses scanned: -
Datasheet:
http://archive.ericsson.net/service/internet/picov/get?DocNo=28701-EN/LZT146401
* Ericsson BMR462, BMR463, BMR464
Prefixes: 'bmr462', 'bmr463', 'bmr464'
Addresses scanned: -
Datasheet:
http://archive.ericsson.net/service/internet/picov/get?DocNo=28701-EN/LZT146256


Author: Guenter Roeck <guenter.roeck@ericsson.com>

Expand Down
4 changes: 2 additions & 2 deletions drivers/hwmon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,11 @@ config SENSORS_F71882FG
will be called f71882fg.

config SENSORS_F75375S
tristate "Fintek F75375S/SP and F75373"
tristate "Fintek F75375S/SP, F75373 and F75387"
depends on I2C
help
If you say yes here you get support for hardware monitoring
features of the Fintek F75375S/SP and F75373
features of the Fintek F75375S/SP, F75373 and F75387

This driver can also be built as a module. If so, the module
will be called f75375s.
Expand Down
6 changes: 3 additions & 3 deletions 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 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 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 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 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 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 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
Loading

0 comments on commit 6950d76

Please sign in to comment.