Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+39 -16
+1 -1
Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt
··· 48 48 49 49 /* NTC thermistor is a hwmon device */ 50 50 ncp15wb473@0 { 51 - compatible = "ntc,ncp15wb473"; 51 + compatible = "murata,ncp15wb473"; 52 52 pullup-uv = <1800000>; 53 53 pullup-ohm = <47000>; 54 54 pulldown-ohm = <0>;
+14 -6
Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt
··· 3 3 4 4 Requires node properties: 5 5 - "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 + 11 19 - "pullup-uv" Pull up voltage in micro volts 12 20 - "pullup-ohm" Pull up resistor value in ohms 13 21 - "pulldown-ohm" Pull down resistor value in ohms ··· 29 21 30 22 Example: 31 23 ncp15wb473@0 { 32 - compatible = "ntc,ncp15wb473"; 24 + compatible = "murata,ncp15wb473"; 33 25 pullup-uv = <1800000>; 34 26 pullup-ohm = <47000>; 35 27 pulldown-ohm = <0>;
+1
Documentation/devicetree/bindings/vendor-prefixes.txt
··· 83 83 moxa Moxa 84 84 mpl MPL AG 85 85 mundoreader Mundo Reader S.L. 86 + murata Murata Manufacturing Co., Ltd. 86 87 mxicy Macronix International Co., Ltd. 87 88 national National Semiconductor 88 89 neonode Neonode Inc.
+4 -4
Documentation/hwmon/ntc_thermistor
··· 1 1 Kernel driver ntc_thermistor 2 2 ================= 3 3 4 - Supported thermistors: 4 + Supported thermistors from Murata: 5 5 * Murata NTC Thermistors NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, NCP15WL333 6 6 Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473', 'ncp15wl333' 7 7 Datasheet: Publicly available at Murata ··· 15 15 Description 16 16 ----------- 17 17 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. 21 21 22 22 The NTC driver provides lookup tables with a linear approximation function 23 23 and four circuit models with an option not to use any of the four models.
+4 -2
drivers/hwmon/Kconfig
··· 1052 1052 will be called pc87427. 1053 1053 1054 1054 config SENSORS_NTC_THERMISTOR 1055 - tristate "NTC thermistor support" 1055 + tristate "NTC thermistor support from Murata" 1056 1056 depends on !OF || IIO=n || IIO 1057 1057 help 1058 1058 This driver supports NTC thermistors sensor reading and its ··· 1060 1060 send notifications about the temperature. 1061 1061 1062 1062 Currently, this driver supports 1063 - NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333. 1063 + NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333 1064 + from Murata. 1064 1065 1065 1066 This driver can also be built as a module. If so, the module 1066 1067 will be called ntc-thermistor. ··· 1177 1176 config SENSORS_EMC1403 1178 1177 tristate "SMSC EMC1403/23 thermal sensor" 1179 1178 depends on I2C 1179 + select REGMAP_I2C 1180 1180 help 1181 1181 If you say yes here you get support for the SMSC EMC1403/23 1182 1182 temperature monitoring chip.
+1 -1
drivers/hwmon/gpio-fan.c
··· 538 538 539 539 /* Make this driver part of hwmon class. */ 540 540 fan_data->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev, 541 - "gpio-fan", fan_data, 541 + "gpio_fan", fan_data, 542 542 gpio_fan_groups); 543 543 if (IS_ERR(fan_data->hwmon_dev)) 544 544 return PTR_ERR(fan_data->hwmon_dev);
+13 -1
drivers/hwmon/ntc_thermistor.c
··· 163 163 } 164 164 165 165 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 */ 166 178 { .compatible = "ntc,ncp15wb473", 167 179 .data = &ntc_thermistor_id[0] }, 168 180 { .compatible = "ntc,ncp18wb473", ··· 546 534 547 535 module_platform_driver(ntc_thermistor_driver); 548 536 549 - MODULE_DESCRIPTION("NTC Thermistor Driver"); 537 + MODULE_DESCRIPTION("NTC Thermistor Driver from Murata"); 550 538 MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); 551 539 MODULE_LICENSE("GPL"); 552 540 MODULE_ALIAS("platform:ntc-thermistor");
+1 -1
drivers/hwmon/w83l786ng.c
··· 249 249 int nr = to_sensor_dev_attr(attr)->index; \ 250 250 struct w83l786ng_data *data = w83l786ng_update_device(dev); \ 251 251 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]))); \ 253 253 } 254 254 255 255 show_fan_reg(fan);