Skip to content

Commit

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

Pull hwmon fixes from Guenter Roeck:

 - Fix up chip IDs (isl68137)

 - error handling for invalid temperatures and use true module name
   (drivetemp)

 - Fix static symbol warnings (k10temp)

 - Use valid hwmon device name (jc42)

* tag 'hwmon-for-v5.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
  hwmon: (jc42) Fix name to have no illegal characters
  hwmon: (k10temp) make some symbols static
  hwmon: (drivetemp) Return -ENODATA for invalid temperatures
  hwmon: (drivetemp) Use drivetemp's true module name in Kconfig section
  hwmon: (pmbus/isl68137) Fix up chip IDs
  • Loading branch information
torvalds committed Apr 18, 2020
2 parents c0d73a8 + c843b38 commit eeaa762
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 50 deletions.
76 changes: 38 additions & 38 deletions Documentation/hwmon/isl68137.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Supported chips:

* Renesas ISL68220

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl68220'

Addresses scanned: -

Expand All @@ -26,7 +26,7 @@ Supported chips:

* Renesas ISL68221

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl68221'

Addresses scanned: -

Expand All @@ -36,7 +36,7 @@ Supported chips:

* Renesas ISL68222

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl68222'

Addresses scanned: -

Expand All @@ -46,7 +46,7 @@ Supported chips:

* Renesas ISL68223

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl68223'

Addresses scanned: -

Expand All @@ -56,7 +56,7 @@ Supported chips:

* Renesas ISL68224

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl68224'

Addresses scanned: -

Expand All @@ -66,7 +66,7 @@ Supported chips:

* Renesas ISL68225

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl68225'

Addresses scanned: -

Expand All @@ -76,7 +76,7 @@ Supported chips:

* Renesas ISL68226

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl68226'

Addresses scanned: -

Expand All @@ -86,7 +86,7 @@ Supported chips:

* Renesas ISL68227

Prefix: 'raa_dmpvr2_1rail'
Prefix: 'isl68227'

Addresses scanned: -

Expand All @@ -96,7 +96,7 @@ Supported chips:

* Renesas ISL68229

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl68229'

Addresses scanned: -

Expand All @@ -106,7 +106,7 @@ Supported chips:

* Renesas ISL68233

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl68233'

Addresses scanned: -

Expand All @@ -116,7 +116,7 @@ Supported chips:

* Renesas ISL68239

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl68239'

Addresses scanned: -

Expand All @@ -126,7 +126,7 @@ Supported chips:

* Renesas ISL69222

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69222'

Addresses scanned: -

Expand All @@ -136,7 +136,7 @@ Supported chips:

* Renesas ISL69223

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl69223'

Addresses scanned: -

Expand All @@ -146,7 +146,7 @@ Supported chips:

* Renesas ISL69224

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69224'

Addresses scanned: -

Expand All @@ -156,7 +156,7 @@ Supported chips:

* Renesas ISL69225

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69225'

Addresses scanned: -

Expand All @@ -166,7 +166,7 @@ Supported chips:

* Renesas ISL69227

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl69227'

Addresses scanned: -

Expand All @@ -176,7 +176,7 @@ Supported chips:

* Renesas ISL69228

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl69228'

Addresses scanned: -

Expand All @@ -186,7 +186,7 @@ Supported chips:

* Renesas ISL69234

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69234'

Addresses scanned: -

Expand All @@ -196,7 +196,7 @@ Supported chips:

* Renesas ISL69236

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69236'

Addresses scanned: -

Expand All @@ -206,7 +206,7 @@ Supported chips:

* Renesas ISL69239

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl69239'

Addresses scanned: -

Expand All @@ -216,7 +216,7 @@ Supported chips:

* Renesas ISL69242

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69242'

Addresses scanned: -

Expand All @@ -226,7 +226,7 @@ Supported chips:

* Renesas ISL69243

Prefix: 'raa_dmpvr2_1rail'
Prefix: 'isl69243'

Addresses scanned: -

Expand All @@ -236,7 +236,7 @@ Supported chips:

* Renesas ISL69247

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69247'

Addresses scanned: -

Expand All @@ -246,7 +246,7 @@ Supported chips:

* Renesas ISL69248

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69248'

Addresses scanned: -

Expand All @@ -256,7 +256,7 @@ Supported chips:

* Renesas ISL69254

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69254'

Addresses scanned: -

Expand All @@ -266,7 +266,7 @@ Supported chips:

* Renesas ISL69255

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69255'

Addresses scanned: -

Expand All @@ -276,7 +276,7 @@ Supported chips:

* Renesas ISL69256

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69256'

Addresses scanned: -

Expand All @@ -286,7 +286,7 @@ Supported chips:

* Renesas ISL69259

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69259'

Addresses scanned: -

Expand All @@ -296,7 +296,7 @@ Supported chips:

* Renesas ISL69260

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69260'

Addresses scanned: -

Expand All @@ -306,7 +306,7 @@ Supported chips:

* Renesas ISL69268

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69268'

Addresses scanned: -

Expand All @@ -316,7 +316,7 @@ Supported chips:

* Renesas ISL69269

Prefix: 'raa_dmpvr2_3rail'
Prefix: 'isl69269'

Addresses scanned: -

Expand All @@ -326,7 +326,7 @@ Supported chips:

* Renesas ISL69298

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'isl69298'

Addresses scanned: -

Expand All @@ -336,7 +336,7 @@ Supported chips:

* Renesas RAA228000

Prefix: 'raa_dmpvr2_hv'
Prefix: 'raa228000'

Addresses scanned: -

Expand All @@ -346,7 +346,7 @@ Supported chips:

* Renesas RAA228004

Prefix: 'raa_dmpvr2_hv'
Prefix: 'raa228004'

Addresses scanned: -

Expand All @@ -356,7 +356,7 @@ Supported chips:

* Renesas RAA228006

Prefix: 'raa_dmpvr2_hv'
Prefix: 'raa228006'

Addresses scanned: -

Expand All @@ -366,7 +366,7 @@ Supported chips:

* Renesas RAA228228

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'raa228228'

Addresses scanned: -

Expand All @@ -376,7 +376,7 @@ Supported chips:

* Renesas RAA229001

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'raa229001'

Addresses scanned: -

Expand All @@ -386,7 +386,7 @@ Supported chips:

* Renesas RAA229004

Prefix: 'raa_dmpvr2_2rail'
Prefix: 'raa229004'

Addresses scanned: -

Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ config SENSORS_DRIVETEMP
hard disk drives.

This driver can also be built as a module. If so, the module
will be called satatemp.
will be called drivetemp.

config SENSORS_DS620
tristate "Dallas Semiconductor DS620"
Expand Down
6 changes: 6 additions & 0 deletions drivers/hwmon/drivetemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,18 @@ static int drivetemp_get_scttemp(struct drivetemp_data *st, u32 attr, long *val)
return err;
switch (attr) {
case hwmon_temp_input:
if (!temp_is_valid(buf[SCT_STATUS_TEMP]))
return -ENODATA;
*val = temp_from_sct(buf[SCT_STATUS_TEMP]);
break;
case hwmon_temp_lowest:
if (!temp_is_valid(buf[SCT_STATUS_TEMP_LOWEST]))
return -ENODATA;
*val = temp_from_sct(buf[SCT_STATUS_TEMP_LOWEST]);
break;
case hwmon_temp_highest:
if (!temp_is_valid(buf[SCT_STATUS_TEMP_HIGHEST]))
return -ENODATA;
*val = temp_from_sct(buf[SCT_STATUS_TEMP_HIGHEST]);
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/jc42.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static int jc42_probe(struct i2c_client *client, const struct i2c_device_id *id)
}
data->config = config;

hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name,
hwmon_dev = devm_hwmon_device_register_with_info(dev, "jc42",
data, &jc42_chip_info,
NULL);
return PTR_ERR_OR_ZERO(hwmon_dev);
Expand Down
Loading

0 comments on commit eeaa762

Please sign in to comment.