- Apr 14, 2013
-
-
Guenter Roeck authored
instead of creating and removing sysfs attribute files individually. Acked-by:
Jean Delvare <khali@linux-fr.org> Signed-off-by:
Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:
Guenter Roeck <linux@roeck-us.net> Acked-by:
Jean Delvare <khali@linux-fr.org>
-
- Apr 13, 2013
-
-
Guenter Roeck authored
This ensures that the loop iterations are correct even if/when the number of elements in an array changes. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Masanari Iida authored
Correct spelling typo in Documentation/hwmon Signed-off-by:
Masanari Iida <standby24x7@gmail.com> Signed-off-by:
Guenter Roeck <linux@roeck-us.net>
-
- Apr 08, 2013
-
-
Guenter Roeck authored
Per datasheet, VIN3 and AUXTIN share the same external pin. However, there is no clean way to detect this condition. Furthermore, both are reported by the BIOS on Supermicro C7H61. It may thus be possible that chip revisions exist where both attributes are supported at the same time. Better play safe and report both. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Jingoo Han authored
Use the wrapper functions for getting and setting the driver data using spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we can directly pass a struct spi_device. Signed-off-by:Jingoo Han <jg1.han@samsung.com> Signed-off-by:
Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:
Guenter Roeck <linux@roeck-us.net> Reviewed-by:
Jean Delvare <khali@linux-fr.org>
-
Guenter Roeck authored
NCT6775, NCT6776, and NCT6779 have a number of variants with the same chip ID but different chip labels. Add text "or compatible" to the message displayed when the driver is loaded and rephrase the Kconfig entry to reflect that it also supports compatible chips. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Simplify code and reduce object size by more than 300 bytes (x86_64). Cc: Jamie Lentin <jm@lentin.co.uk> Cc: Simon Guinot <simon.guinot@sequanux.org> Tested-by:
Simon Guinot <simon.guinot@sequanux.org> Signed-off-by:
Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Turns out that TMP411B and TMP411C have different and unique device IDs. Signed-off-by:
Guenter Roeck <linux@roeck-us.net> Acked-by:
Jean Delvare <khali@linux-fr.org>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
TMP431 is compatible to TMP401. Also add support for additional I2C addresses supported by TMP411B and TMP411C. Signed-off-by:
Guenter Roeck <linux@roeck-us.net> Acked-by:
Jean Delvare <khali@linux-fr.org>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Initialize device specific coefficients from table instead of hard-coding it to simplify adding additional chips. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Limits on all supported sensors and chips have to be within 0..0x0fff, and limits are always positive. Clamp written values in chip driver. Also clear value cache to ensure that the actually written value is read back and reported correctly. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
So far the driver reported the voltage on VAUX as "vout2". This was not entirely appropriate as it is not an output voltage, and complicates the code. Use the new virtual "VMON" register set and report the voltage as "vmon" instead. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Simplify the code and reduce its size by using is_visible to determine valid attributes, and sysfs_create_group to create all of them with a single call. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Fix: drivers/hwmon/adt7310.c:51:16: sparse: cast to restricted __be16 Cc: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Some sysfs attributes are only supported on LTC2978 and not on LTC3880. Update documentation to reflect which attributes are supported for which chips. Output current attributes supported on LTC3880 were described as providing input current values. Fix text to reflect that the attributes provide output current values. "reset history" attribute descriptions were misleading and seemed to imply that all history was reset when writing a single attribute. Replace with more accurate text. Replace 'internal temperature" with "chip temperature". Temperature limits not only apply to the chip temperature, but also to external temperatures on LTC3880, so remove the word "chip" from the attribute description. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Use u16 instead of int to store cached limit attributes. This reduces allocated data size per driver instance by 48 bytes. Use defines for the number of pages supported by individual chips. Use ARRAY_SIZE for loops to initialize array variables, and initialize all variables in the same code block. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Fix: ERROR: Macros with complex values should be enclosed in parenthesis by unwinding the problematic macros. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Fix: ERROR: Macros with complex values should be enclosed in parenthesis by unwinding the problematic macros. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Fix: ERROR: Macros with complex values should be enclosed in parenthesis by unwinding the problematic macros. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Cc: Corentin Labbe <corentin.labbe@geomatys.fr> Cc: Mark M. Hoffman <mhoffman@lightlink.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Juerg Haefliger <juergh@gmail.com> Cc: Andreas Herrmann <herrmann.der.user@googlemail.com> Cc: Rudolf Marek <r.marek@assembler.cz> Cc: Jim Cromie <jim.cromie@gmail.com> Cc: Roger Lucas <vt8231@hiddenengine.co.uk> Cc: Marc Hulsman <m.hulsman@tudelft.nl> Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
The read/write lock is acquired for each read/write operation from/to the chip. This occurs either during initialization, when it is not needed, or during updates, when the update_lock is held as well, and it is not needed either. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
VID is not always enabled (NCT6775, NCT6776) or supported (NCT6779). Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Scan all temperature sources used for fan control and report if additional monitoring registers are available. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
The NCT677X series support weighted fan control. In this mode, a secondary temperature source is used in addition to the primary temperature source to control fan speed. Add support for this feature. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
If set, fan debounce is enabled when loading the driver. Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-
Guenter Roeck authored
Signed-off-by:Guenter Roeck <linux@roeck-us.net>
-