31 May, 2019
1 commit
-
Based on 1 normalized pattern(s):
licensed under the gpl 2 or later
extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-or-later
has been chosen to replace the boilerplate/reference in 82 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Allison Randal
Reviewed-by: Kate Stewart
Reviewed-by: Richard Fontana
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190524100845.150836982@linutronix.de
Signed-off-by: Greg Kroah-Hartman
08 Apr, 2013
3 commits
-
This allows an userspace application to poll() on the alarm files to get
notified in case of a temperature threshold event.Signed-off-by: Lars-Peter Clausen
Reviewed-by: Hartmut Knaack
Signed-off-by: Guenter Roeck -
The adt7310/adt7320 is the SPI version of the adt7410/adt7420. The register map
layout is a bit different, i.e. the register addresses differ between the two
variants, but the bit layouts of the individual registers are identical. So both
chip variants can easily be supported by the same driver. The issue of non
matching register address layouts is solved by a simple look-up table which
translates the I2C addresses to the SPI addresses.The patch moves the bulk of the adt7410 driver to a common module that will be
shared by the adt7410 and adt7310 drivers. This common module implements the
driver logic and uses a set of virtual functions to perform IO access. The
adt7410 and adt7310 driver modules provide proper implementations of these IO
accessor functions for I2C respective SPI.Signed-off-by: Lars-Peter Clausen
Reviewed-by: Hartmut Knaack
Signed-off-by: Guenter Roeck -
Currently each time the temperature register is read the driver also reads the
threshold and hysteresis registers. This increases the amount of I2C traffic and
time needed to read the temperature by a factor of ~5. Neither the threshold nor
the hysteresis change on their own, so once we have read them, we should be able
to just use the cached value of the registers. This patch modifies the code
accordingly and only reads the threshold and hysteresis registers once during
probe.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Guenter Roeck
20 Feb, 2013
5 commits
-
The adt7420 is software compatible to the adt7410.
Signed-off-by: Lars-Peter Clausen
Reviewed-by: Hartmut Knaack
Signed-off-by: Guenter Roeck -
Use the I2C_ADDRS macro to initialize the I2C device's address_list. Doing so
saves a few lines of boilerplate code.Signed-off-by: Lars-Peter Clausen
Reviewed-by: Hartmut Knaack
Signed-off-by: Guenter Roeck -
Use the SIMPLE_DEV_PM_OPS macro to declare the driver's pm_ops.
Signed-off-by: Lars-Peter Clausen
Reviewed-by: Hartmut Knaack
Signed-off-by: Guenter Roeck -
Only build the suspend/resume code if CONFIG_PM_SLEEP is selected. Currently the
code is built if CONFIG_PM is selected, but it will also be selected if only
runtime PM support is built into the kernel.Signed-off-by: Lars-Peter Clausen
Acked-by: Hartmut Knaack
Signed-off-by: Guenter Roeck -
Make sure to clear the mode bits from the config register before setting the new
mode. Otherwise we might end up with a different mode than we want to.Signed-off-by: Lars-Peter Clausen
Reviewed-by: Hartmut Knaack
Signed-off-by: Guenter Roeck
26 Jan, 2013
1 commit
-
SENSORS_LIMIT and the generic clamp_val have the same functionality,
and clamp_val is more efficient.This patch reduces text size by 9052 bytes and bss size by 11624 bytes
for x86_64 builds.Signed-off-by: Guenter Roeck
Acked-by: George Joseph
Acked-by: Jean Delvare
24 Sep, 2012
2 commits
-
Smatch complains that adt7410_update_device() can return error pointers.
Signed-off-by: Dan Carpenter
Signed-off-by: Guenter Roeck -
This patch brings basic support for the Analog Devices ADT7410 temperature
sensor. The following functionality has been implemented:* get current temperature
* get/set minimum, maximum and critical temperature
* get/set hysteresis
* get alarm events for minimum, maximum and critical temperatureAll implemented sysfs attributes have been sucessfully tested at temperatures
of 15°C to 40°C.Signed-off-by: Hartmut Knaack
Signed-off-by: Guenter Roeck