Skip to content

Commit 2a80ff8

Browse files
committed
Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon fixes from Guenter Roeck: "Various minor fixes" * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: hwmon: (gpio-fan) Change name used in hwmon_device_register_with_groups hwmon: (emc1403) Fix missing 'select REGMAP_I2C' in Kconfig hwmon: (ntc_thermistor) Use the manufacturer name properly devicetree: bindings: Document murata vendor prefix hwmon: (w83l786ng) Report correct minimum fan speed
2 parents f40ede3 + d26e0da commit 2a80ff8

File tree

8 files changed

+39
-16
lines changed

8 files changed

+39
-16
lines changed

Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ adc@12D10000 {
4848

4949
/* NTC thermistor is a hwmon device */
5050
ncp15wb473@0 {
51-
compatible = "ntc,ncp15wb473";
51+
compatible = "murata,ncp15wb473";
5252
pullup-uv = <1800000>;
5353
pullup-ohm = <47000>;
5454
pulldown-ohm = <0>;

Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@ NTC Thermistor hwmon sensors
33

44
Requires node properties:
55
- "compatible" value : one of
6-
"ntc,ncp15wb473"
7-
"ntc,ncp18wb473"
8-
"ntc,ncp21wb473"
9-
"ntc,ncp03wb473"
10-
"ntc,ncp15wl333"
6+
"murata,ncp15wb473"
7+
"murata,ncp18wb473"
8+
"murata,ncp21wb473"
9+
"murata,ncp03wb473"
10+
"murata,ncp15wl333"
11+
12+
/* Usage of vendor name "ntc" is deprecated */
13+
<DEPRECATED> "ntc,ncp15wb473"
14+
<DEPRECATED> "ntc,ncp18wb473"
15+
<DEPRECATED> "ntc,ncp21wb473"
16+
<DEPRECATED> "ntc,ncp03wb473"
17+
<DEPRECATED> "ntc,ncp15wl333"
18+
1119
- "pullup-uv" Pull up voltage in micro volts
1220
- "pullup-ohm" Pull up resistor value in ohms
1321
- "pulldown-ohm" Pull down resistor value in ohms
@@ -21,7 +29,7 @@ Read more about iio bindings at
2129

2230
Example:
2331
ncp15wb473@0 {
24-
compatible = "ntc,ncp15wb473";
32+
compatible = "murata,ncp15wb473";
2533
pullup-uv = <1800000>;
2634
pullup-ohm = <47000>;
2735
pulldown-ohm = <0>;

Documentation/devicetree/bindings/vendor-prefixes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ mosaixtech Mosaix Technologies, Inc.
8383
moxa Moxa
8484
mpl MPL AG
8585
mundoreader Mundo Reader S.L.
86+
murata Murata Manufacturing Co., Ltd.
8687
mxicy Macronix International Co., Ltd.
8788
national National Semiconductor
8889
neonode Neonode Inc.

Documentation/hwmon/ntc_thermistor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Kernel driver ntc_thermistor
22
=================
33

4-
Supported thermistors:
4+
Supported thermistors from Murata:
55
* Murata NTC Thermistors NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, NCP15WL333
66
Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473', 'ncp15wl333'
77
Datasheet: Publicly available at Murata
@@ -15,9 +15,9 @@ Authors:
1515
Description
1616
-----------
1717

18-
The NTC thermistor is a simple thermistor that requires users to provide the
19-
resistance and lookup the corresponding compensation table to get the
20-
temperature input.
18+
The NTC (Negative Temperature Coefficient) thermistor is a simple thermistor
19+
that requires users to provide the resistance and lookup the corresponding
20+
compensation table to get the temperature input.
2121

2222
The NTC driver provides lookup tables with a linear approximation function
2323
and four circuit models with an option not to use any of the four models.

drivers/hwmon/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,15 +1052,16 @@ config SENSORS_PC87427
10521052
will be called pc87427.
10531053

10541054
config SENSORS_NTC_THERMISTOR
1055-
tristate "NTC thermistor support"
1055+
tristate "NTC thermistor support from Murata"
10561056
depends on !OF || IIO=n || IIO
10571057
help
10581058
This driver supports NTC thermistors sensor reading and its
10591059
interpretation. The driver can also monitor the temperature and
10601060
send notifications about the temperature.
10611061

10621062
Currently, this driver supports
1063-
NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333.
1063+
NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333
1064+
from Murata.
10641065

10651066
This driver can also be built as a module. If so, the module
10661067
will be called ntc-thermistor.
@@ -1176,6 +1177,7 @@ config SENSORS_DME1737
11761177
config SENSORS_EMC1403
11771178
tristate "SMSC EMC1403/23 thermal sensor"
11781179
depends on I2C
1180+
select REGMAP_I2C
11791181
help
11801182
If you say yes here you get support for the SMSC EMC1403/23
11811183
temperature monitoring chip.

drivers/hwmon/gpio-fan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ static int gpio_fan_probe(struct platform_device *pdev)
538538

539539
/* Make this driver part of hwmon class. */
540540
fan_data->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev,
541-
"gpio-fan", fan_data,
541+
"gpio_fan", fan_data,
542542
gpio_fan_groups);
543543
if (IS_ERR(fan_data->hwmon_dev))
544544
return PTR_ERR(fan_data->hwmon_dev);

drivers/hwmon/ntc_thermistor.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,18 @@ static int ntc_adc_iio_read(struct ntc_thermistor_platform_data *pdata)
163163
}
164164

165165
static const struct of_device_id ntc_match[] = {
166+
{ .compatible = "murata,ncp15wb473",
167+
.data = &ntc_thermistor_id[0] },
168+
{ .compatible = "murata,ncp18wb473",
169+
.data = &ntc_thermistor_id[1] },
170+
{ .compatible = "murata,ncp21wb473",
171+
.data = &ntc_thermistor_id[2] },
172+
{ .compatible = "murata,ncp03wb473",
173+
.data = &ntc_thermistor_id[3] },
174+
{ .compatible = "murata,ncp15wl333",
175+
.data = &ntc_thermistor_id[4] },
176+
177+
/* Usage of vendor name "ntc" is deprecated */
166178
{ .compatible = "ntc,ncp15wb473",
167179
.data = &ntc_thermistor_id[0] },
168180
{ .compatible = "ntc,ncp18wb473",
@@ -534,7 +546,7 @@ static struct platform_driver ntc_thermistor_driver = {
534546

535547
module_platform_driver(ntc_thermistor_driver);
536548

537-
MODULE_DESCRIPTION("NTC Thermistor Driver");
549+
MODULE_DESCRIPTION("NTC Thermistor Driver from Murata");
538550
MODULE_AUTHOR("MyungJoo Ham <[email protected]>");
539551
MODULE_LICENSE("GPL");
540552
MODULE_ALIAS("platform:ntc-thermistor");

drivers/hwmon/w83l786ng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \
249249
int nr = to_sensor_dev_attr(attr)->index; \
250250
struct w83l786ng_data *data = w83l786ng_update_device(dev); \
251251
return sprintf(buf, "%d\n", \
252-
FAN_FROM_REG(data->fan[nr], DIV_FROM_REG(data->fan_div[nr]))); \
252+
FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
253253
}
254254

255255
show_fan_reg(fan);

0 commit comments

Comments
 (0)