034b44b4a22371c5bcbfb602a5420f3b75939dd8 |
|
02-Jul-2014 |
Axel Lin <axel.lin@ingics.com> |
hwmon: Make regmap configs const Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
51585befb4c3c629980b5b252a0caaeeac3b7d73 |
|
12-May-2014 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Add device IDs for EMC1412, EMC1413, and EMC1414 EMC1412, EMC1413, and EMC1414 are fully compatible to EMC1402, EMC1403, and EMC1404, and even report the same chip ID. Add to device ID table to enable instantiation with correct chip names. Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
54392ce4446e31b4f8a98961ef30bf6397c15266 |
|
12-May-2014 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Add support for min_hyst attributes The hysteresis value applies to all limits, so add support for tempX_min_hyst. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
a9a74006867e23ad310c6a0dd5cb8fdec5ae3520 |
|
12-May-2014 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Add support for max_hyst attributes The hysteresis value applies to all limits, so add support for tempX_max_hyst. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
ceeaa70c0fa7fbf30a0c7a2b07dc895de22583c9 |
|
12-May-2014 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Relax hysteresis limit write checks Writing the hysteresis limit returned -ERANGE if the written hysteresis was too high or too low. Relax error check and adjust the hysteresis value to its valid range. Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
84899d394e755989a1cc080083080f7695c36467 |
|
12-May-2014 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Make all hyst attributes except for temp1_crit_hyst read-only All chips in this chip series only support a single hysteresis value. Having multiple writable hysteresis attributes is therefore confusing, since a single write affects all hysteresis temperatures. Make all but one (temp1_crit_hyst) read-only. Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
03f49f641ab70b2ceea674e666f5b933e3bc5d27 |
|
12-May-2014 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Add support for alarm and diode fault status on EMC14x2 Alarm and fault status register on EMC1402, EMC1412, and EMC1422 is reported in a different register than with other chips. Add support for it. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
d8850c19b589bd364d3c7cd1273193e6dfe83fd9 |
|
12-May-2014 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Report external diode fault status Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
4cab259f866ed33571c5f9e3f4bc2799ab64ba45 |
|
12-May-2014 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Convert to use regmap Convert to regmap to be able to use its register caching mechanism. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
be7f5c4d48e05cb6753d17eb09bea3c38db2ec6f |
|
12-May-2014 |
Josef Gajdusek <atx@atx.name> |
hwmon: (emc1403) Add support for emc14x2 Add support for emc1402/emc1412/emc1422 temperature monitoring chips. This line of sensors only has 2 temperature channels (internal and external) in comparison to the emc14x3 (3 channels) and emc14x4 (4 channels). Signed-off-by: Josef Gajdusek <atx@atx.name> [Guenter Roeck: ordered i2c address list, updated description/headline] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
3a18e1398fc2dc9c32bbdc50664da3a77959a8d1 |
|
12-May-2014 |
Josef Gajdusek <atx@atx.name> |
hwmon: (emc1403) Support full range of known chip revision numbers The datasheet for EMC1413/EMC1414, which is fully compatible to EMC1403/1404 and uses the same chip identification, references revision numbers 0x01, 0x03, and 0x04. Accept the full range of revision numbers from 0x01 to 0x04 to make sure none are missed. Signed-off-by: Josef Gajdusek <atx@atx.name> Cc: stable@vger.kernel.org [Guenter Roeck: Updated headline and description] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
8759f9046550f463098148bf577ccd32cdb895e3 |
|
12-May-2014 |
Jean Delvare <jdelvare@suse.de> |
hwmon: (emc1403) Fix resource leak on module unload Commit 454aee17f claims to convert driver emc1403 to use devm_hwmon_device_register_with_groups, however the patch itself makes use of hwmon_device_register_with_groups instead. As the driver remove function was still dropped, the hwmon device is no longer unregistered on driver removal, leading to a resource leak. Signed-off-by: Jean Delvare <jdelvare@suse.de> Fixes: 454aee17f hwmon: (emc1403) Convert to use devm_hwmon_device_register_with_groups Cc: Guenter Roeck <linux@roeck-us.net> Cc: stable@vger.kernel.org [3.13+] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
17c048fc4bd95efea208a1920f169547d8588f1f |
|
11-May-2014 |
Josef Gajdusek <atx@atx.name> |
hwmon: (emc1403) fix inverted store_hyst() Attempts to set the hysteresis value to a temperature below the target limit fails with "write error: Numerical result out of range" due to an inverted comparison. Signed-off-by: Josef Gajdusek <atx@atx.name> Reviewed-by: Jean Delvare <jdelvare@suse.de> Cc: stable@vger.kernel.org [Guenter Roeck: Updated headline and description] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
0011ddfe6a03279fae60d237f2f4d0d7f7678928 |
|
29-Sep-2013 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Add support for EMC1404 and EMC1424 EMC1404 and EMC1424 are similar to EMC1403 and EMC1423, but support an additional external temperature sensor. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
454aee17fd441b8ee8e956196dd3ddc9c8ee96d6 |
|
29-Sep-2013 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Convert to use devm_hwmon_device_register_with_groups Simplify code and reduce its size. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
dcd8f39230b9f724ba4f55f14ed2bb8119204385 |
|
10-Oct-2012 |
Jean Delvare <khali@linux-fr.org> |
hwmon: Add missing inclusions of <linux/jiffies.h> Many hwmon drivers use jiffies but omit the inclusion of the header file. Fix that, and also fix one driver which was including the header file but didn't need it. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Luca Tettamanti <kronos.it@gmail.com> Cc: Marc Hulsman <m.hulsman@tudelft.nl> Cc: Rudolf Marek <r.marek@assembler.cz>
|
7b52eefe1637cffd449abdb5ce67e7dfbda8b2c1 |
|
02-Jun-2012 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Convert to use devm_ functions Convert to use devm_ functions to reduce code size and simplify the code. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
4bebced84fb66e8f4c061c5579264b112c39fdec |
|
19-Jan-2012 |
Guenter Roeck <linux@roeck-us.net> |
hwmon: (emc1403) Fix multi-line comments Cc: Kalhan Trisal <kalhan.trisal@intel.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
f0967eea80ec2a19a4fe1ad27e3ff1b22c79a3c7 |
|
20-Jan-2012 |
Axel Lin <axel.lin@gmail.com> |
hwmon: convert drivers/hwmon/* to use module_i2c_driver() This patch converts the drivers in drivers/hwmon/* to use the module_i2c_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Corentin Labbe <corentin.labbe@geomatys.fr> Cc: Dirk Eibach <eibach@gdsys.de> Cc: "Mark M. Hoffman" <mhoffman@lightlink.com> Cc: Steve Glendinning <steve.glendinning@smsc.com> Cc: Riku Voipio <riku.voipio@iki.fi> Cc: Guillaume Ligneul <guillaume.ligneul@gmail.com> Cc: David George <david.george@ska.ac.za> Cc: "Hans J. Koch" <hjk@hansjkoch.de> Cc: Marc Hulsman <m.hulsman@tudelft.nl> Cc: Rudolf Marek <r.marek@assembler.cz> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
|
179c4fdb565dd2157e5dfe89318b74868e3b523d |
|
04-Jan-2012 |
Frans Meulenbroeks <fransmeulenbroeks@gmail.com> |
hwmon: replaced strict_str* with kstr* replaced strict_strtol with kstrtol and replaced strict_strtuol with kstrtuol This satisfies checkpatch -f Compile tested only: no warnings or errors given Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
|
bcf721d14d881da86a8defa96bdc9492abe191ae |
|
09-Feb-2011 |
Guenter Roeck <guenter.roeck@ericsson.com> |
hwmon: (emc1403) Fix I2C address range I2C address range included 0x2a, which the chips do not support. Replace with 0x29 which is supported but was missing. Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Acked-by: Jean Delvare <khali@linux-fr.org>
|
7a1b76f2a46016809c7bcacf81e89948cc306703 |
|
12-Jan-2011 |
Jekyll Lai <jekyll_lai@wistron.com> |
hwmon: (emc1403) Add EMC1423 support EMC1423 uses the similar register and adds a hardware shutdown pin to protect exceed temperature. This function is set by resistor; it's not necessary to do anything in the driver except add the emc1423 pid of 0x23. Signed-off-by: Jekyll Lai <jekyll_lai@wistron.com> [Updated Kconfig/comments and minor further changes asked for by the hwmon maintainers] Signed-off-by: Alan Cox <alan@linux.intel.com> [Fixed checkpatch warning] Signed-of--by: Jean Delvare <khali@linux-fr.org>
|
f17c811d1433aa1966f9c5a744841427e9a97ecf |
|
17-Sep-2010 |
Yong Wang <yong.y.wang@linux.intel.com> |
hwmon: (emc1403) Remove unnecessary hwmon_device_unregister It is unnecessary and wrong to call hwmon_device_unregister in error handling before hwmon_device_register is called. Signed-off-by: Yong Wang <yong.y.wang@intel.com> Reviewed-by: Guenter Roeck <guenter.roeck@ericsson.com> Cc: stable@kernel.org Signed-off-by: Jean Delvare <khali@linux-fr.org>
|
960f12f4d1eb5ba3c76dc6b57a909a65dd59e1c2 |
|
14-Aug-2010 |
Alan Cox <alan@linux.intel.com> |
hwmon: (emc1403) Add power support Add back the power interface we lost due to a slight misunderstanding of the maintainers wishes. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
|
dac6831e67e90d1cee430a66e7390e753c20d835 |
|
27-May-2010 |
Kalhan Trisal <kalhan.trisal@intel.com> |
hwmon: EMC1403 thermal sensor support Provides support for the EMC1403 thermal sensor. Only reporting of values is supported. The various Moorestown specific extras to do with thermal alerts and the like are not in this version of the driver. Considerably edited and tidied up by Alan Cox, plus fixes and detection bits from Jean Delvare. Signed-off-by: Kalhan Trisal <kalhan.trisal@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
|