- 11 2月, 2017 8 次提交
-
-
由 Christian Lamparter 提交于
This patch updates the LM90's devicetree definition to include the #thermal-sensor-cells property as well as the sensor constants in include/dt-bindings/thermal/lm90.h. Cc: Wei Ni <wni@nvidia.com> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NChristian Lamparter <chunkeey@googlemail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
The chip is similar to IT8732E, but supports only three fans and pwm outputs instead of four (the driver currently does not support the 4th fan and pwm output of IT8732E). Note that the chip ID is 0x8733, not 0x8792 as one would expect. Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
In IT8620E, after setting pwm control to manual, it was observed that pwm values for fan 4..6 have reversed results (writing 0 results in fans running at full speed, writing 255 results in fans turned off). With the new PWM control, pwm polarity for pwm control 4..6 is specified in its pwm control registers. Those registers are overwritten when setting the pwm mode or the temperature mapping. Do not touch bit 2..6 of pwm control registers on register writes to fix the problem. Cc: stable@vger.kernel.org # 4.9+ Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
pwm4 is enabled if bit 2 of GPIO control register 4 is disabled, not when it is enabled. Since the check is for the skip condition, it is reversed. This applies to both IT8620 and IT8628. Fixes: 36c4d98a ("hwmon: (it87) Add support for all pwm channels ...") Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
If sensor attributes were never read, the pwm control data has not been initiialized, which can cause wrong driver behavior. Ensure that cached data is current before acting on it. Cc: stable@vger.kernel.org # 4.4+ Reported-by: NKevin Folz <kfolz@evertz.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
Configuration registers on ITE8622 are different to 8620 and 8628 and require special handling. Also, the chip supports up to 5 pwm controls. Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
IT8622E is similar to IT8620E, but only supports five pwm controls and five fan tachometers. Originally-from: Kevin Folz <kfolz@evertz.com>. Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
On IT8622E and IT8628E, VIN3 is expected to be connected to +5V. Add feature flag and reflect in input label. Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 03 2月, 2017 2 次提交
-
-
由 andrea.merello 提交于
Signed-off-by: NAndrea Merello <andrea.merello@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 andrea.merello 提交于
This patch adds a HWMON driver for ST Microelectronics STTS751 temperature sensors. Thanks-to: LABBE Corentin [for suggestions] Thanks-to: Guenter Roeck [for suggestion and discussions] Signed-off-by: NAndrea Merello <andrea.merello@gmail.com> Cc: LABBE Corentin <clabbe.montjoie@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 31 1月, 2017 2 次提交
-
-
由 Guenter Roeck 提交于
Rgistering a thermal zone uses devm_kzalloc(), which requires a pointer to the parent device. Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
While invalid name attributes are really not desirable and do mess up libsensors, enforcing valid names has the detrimental effect of driving users away from using the new hardware monitoring API, especially those registering name attributes violating the ABI restrictions. Another undesirable side effect is that this violation and the resulting error may only be discovered some time after a conversion to the new API, which in turn may trigger a revert of that conversion. To solve the problem, relax validation and only issue a warning instead of returning an error if a name attribute violating the ABI is provided. This lets callers continue to provide invalid name attributes while notifying them about it. Many thanks are due to Dmitry Torokhov for the idea. Reviewed-by: NJean Delvare <jdelvare@suse.de> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 25 1月, 2017 2 次提交
-
-
由 Guenter Roeck 提交于
Clarify that the name attribute must report a valid name, and the rules for valid names. Also clarify that the name parameter must be provided for all supported API functions. Reviewed-by: NJean Delvare <jdelvare@suse.de> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
It does not make sense to use one of the the new APIs when not even providing a name attribute. Make it mandatory. Reviewed-by: NJean Delvare <jdelvare@suse.de> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 22 1月, 2017 3 次提交
-
-
由 Florian Fainelli 提交于
Add support for Texas Instruments TMP122/124 which are nearly identical to their TMP121/123 except that they also support programmable temperature thresholds. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Florian Fainelli 提交于
We have a device reference, utilize it instead of pr_warn(). Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Javier Martinez Canillas 提交于
The I2C core always reports a MODALIAS of the form i2c:<foo> even if the device was registered via OF, this means that exporting the OF device ID table device aliases in the module is not needed. But in order to change how the core reports modaliases to user-space, it's better to export it. Before this patch: $ modinfo drivers/hwmon/ltc4151.ko | grep alias alias: i2c:ltc4151 After this patch: $ modinfo drivers/hwmon/ltc4151.ko | grep alias alias: i2c:ltc4151 alias: of:N*T*Clltc,ltc4151C* alias: of:N*T*Clltc,ltc4151 Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 11 1月, 2017 8 次提交
-
-
由 Alexander Koch 提交于
Preserve chip operation mode if no mode is specified via devicetree. This enables operation when chip configuration is done by BIOS/ROMMON. Signed-off-by: NAlexander Koch <mail@alexanderkoch.net> Acked-by: NMichael Hornung <mhornung.linux@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Alexander Koch 提交于
Add support for operation modes 1-3 of the ADC128D818 (see datasheet sec. 8.4.1). These differ in the number and type of the available input signals, requiring the driver to selectively hide sysfs nodes according to the operation mode configured via devicetree. Signed-off-by: NAlexander Koch <mail@alexanderkoch.net> Acked-by: NMichael Hornung <mhornung.linux@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Alexander Koch 提交于
Implement operation mode selection using the optional 'ti,mode' devicetree property (see [1]). The ADC128D818 supports four operation modes differing in the number and type of input readings (see datasheet, sec. 8.4.1), of which mode 0 is the default. We only add handling of the 'ti,mode' property here, the driver still supports nothing else than the default mode 0. [1] Documentation/devicetree/bindings/hwmon/adc128d818.txt Signed-off-by: NAlexander Koch <mail@alexanderkoch.net> Acked-by: NMichael Hornung <mhornung.linux@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Alexander Koch 提交于
Add bindings documentation for the ADC128D818 driver, featuring default I2C properties along with the optional 'mode' property for chip operation mode selection (see datasheet, sec. 8.4.1). Signed-off-by: NAlexander Koch <mail@alexanderkoch.net> Acked-by: NMichael Hornung <mhornung.linux@gmail.com> Acked-by: NRob Herring <robh@kernel.org> [groeck: Fixed whitespace error] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Jeroen De Wachter 提交于
tmp401 separately read/wrote high and low bytes of temperature values while the hardware supports reading/writing those values in one operation. Driver has been modified to use word operations where possible. Tested with a tmp432 sensor on a mips64 platform. Signed-off-by: NJeroen De Wachter <jeroen.de_wachter.ext@nokia.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
Writes into limit attributes can overflow due to multplications and additions with unbound input values. Writing into fan limit attributes can result in a crash with a division by zero if very large values are written and the fan divider is larger than 1. Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
Writes into limit attributes can overflow due to additions and multiplications with unchecked parameters. Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
Writes into voltage limit, temperature limit, temperature hysteresis, and temperature zone attributes can overflow due to unclamped parameters to multiplications, additions, and subtractions. Cc: Juerg Haefliger <juergh@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 03 1月, 2017 15 次提交
-
-
由 Peter A. Bigot 提交于
Expose the per-chip unique identifier so it can be used to identify the sensor producing the measurements. Signed-off-by: NPeter A. Bigot <pab@pabigot.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-