24 Sep, 2020
1 commit
-
Many hwmon drivers don't use the id information provided by the old
i2c probe function, and the remainder can easily be adapted to the new
form ("probe_new") by calling i2c_match_id explicitly.This avoids scanning the identifier tables during probes.
Drivers which didn't use the id are converted as-is; drivers which did
are modified as follows:* if the information in i2c_client is sufficient, that's used instead
(client->name);
* anything else is handled by calling i2c_match_id() with the same
level of error-handling (if any) as before.A few drivers aren't included in this patch because they have a
different set of maintainers. They will be covered by other patches.Signed-off-by: Stephen Kitt
Link: https://lore.kernel.org/r/20200813160222.1503401-1-steve@sk2.org
Signed-off-by: Guenter Roeck
24 Aug, 2020
1 commit
-
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.[1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
Signed-off-by: Gustavo A. R. Silva
31 May, 2019
1 commit
-
Based on 1 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license as published by
the free software foundation version 2 of the license this program
is distributed in the hope that it will be useful but without any
warranty without even the implied warranty of merchantability or
fitness for a particular purpose see the gnu general public license
for more details you should have received a copy of the gnu general
public license along with this program if not write to the free
software foundation inc 59 temple place suite 330 boston ma 02111
1307 usaextracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 83 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Richard Fontana
Reviewed-by: Kate Stewart
Reviewed-by: Allison Randal
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190527070034.021731668@linutronix.de
Signed-off-by: Greg Kroah-Hartman
17 Dec, 2018
1 commit
-
Use SENSOR[_DEVICE]_ATTR[_2]_{RO,RW,WO} to simplify the source code,
to improve readbility, and to reduce the chance of inconsistencies.Also replace any remaining S_ in the driver with octal values.
The conversion was done automatically with coccinelle. The semantic patches
and the scripts used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches/hwmon/.This patch does not introduce functional changes. It was verified by
compiling the old and new files and comparing text and data sizes.Signed-off-by: Guenter Roeck
09 Jul, 2018
1 commit
-
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.Signed-off-by: Gustavo A. R. Silva
Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck
04 Aug, 2014
1 commit
-
Signed-off-by: Axel Lin
Signed-off-by: Guenter Roeck
22 May, 2014
9 commits
-
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
Signed-off-by: Guenter Roeck -
The hysteresis value applies to all limits, so add support for
tempX_min_hyst.Signed-off-by: Guenter Roeck
-
The hysteresis value applies to all limits, so add support for
tempX_max_hyst.Signed-off-by: Guenter Roeck
-
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
Signed-off-by: Guenter Roeck -
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
Signed-off-by: Guenter Roeck -
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
-
Signed-off-by: Guenter Roeck
-
Convert to regmap to be able to use its register caching mechanism.
Signed-off-by: Guenter Roeck
-
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
[Guenter Roeck: ordered i2c address list, updated description/headline]
Signed-off-by: Guenter Roeck
12 May, 2014
3 commits
-
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
Cc: stable@vger.kernel.org
[Guenter Roeck: Updated headline and description]
Signed-off-by: Guenter Roeck -
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
Fixes: 454aee17f hwmon: (emc1403) Convert to use devm_hwmon_device_register_with_groups
Cc: Guenter Roeck
Cc: stable@vger.kernel.org [3.13+]
Signed-off-by: Guenter Roeck -
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
Reviewed-by: Jean Delvare
Cc: stable@vger.kernel.org
[Guenter Roeck: Updated headline and description]
Signed-off-by: Guenter Roeck
19 Oct, 2013
2 commits
-
EMC1404 and EMC1424 are similar to EMC1403 and EMC1423,
but support an additional external temperature sensor.Signed-off-by: Guenter Roeck
-
Simplify code and reduce its size.
Signed-off-by: Guenter Roeck
10 Oct, 2012
1 commit
-
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
Acked-by: Guenter Roeck
Acked-by: Luca Tettamanti
Cc: Marc Hulsman
Cc: Rudolf Marek
24 Sep, 2012
1 commit
-
Convert to use devm_ functions to reduce code size and simplify the code.
Signed-off-by: Guenter Roeck
19 Mar, 2012
2 commits
-
Cc: Kalhan Trisal
Signed-off-by: Guenter Roeck -
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
Cc: Corentin Labbe
Cc: Dirk Eibach
Cc: "Mark M. Hoffman"
Cc: Steve Glendinning
Cc: Riku Voipio
Cc: Guillaume Ligneul
Cc: David George
Cc: "Hans J. Koch"
Cc: Marc Hulsman
Cc: Rudolf Marek
Signed-off-by: Guenter Roeck
06 Jan, 2012
1 commit
-
replaced strict_strtol with kstrtol and
replaced strict_strtuol with kstrtuolThis satisfies checkpatch -f
Compile tested only: no warnings or errors givenSigned-off-by: Frans Meulenbroeks
Signed-off-by: Guenter Roeck
10 Feb, 2011
1 commit
-
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
Acked-by: Jean Delvare
13 Jan, 2011
1 commit
-
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
[Updated Kconfig/comments and minor further changes asked for by the hwmon
maintainers]
Signed-off-by: Alan Cox
[Fixed checkpatch warning]
Signed-of--by: Jean Delvare
17 Sep, 2010
1 commit
-
It is unnecessary and wrong to call hwmon_device_unregister in error
handling before hwmon_device_register is called.Signed-off-by: Yong Wang
Reviewed-by: Guenter Roeck
Cc: stable@kernel.org
Signed-off-by: Jean Delvare
15 Aug, 2010
1 commit
-
Add back the power interface we lost due to a slight misunderstanding of
the maintainers wishes.Signed-off-by: Alan Cox
Signed-off-by: Jean Delvare
28 May, 2010
1 commit
-
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
Signed-off-by: Alan Cox
Signed-off-by: Jean Delvare