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

    Thomas Gleixner
     

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

    Lars-Peter Clausen
     
  • 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

    Lars-Peter Clausen
     
  • 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

    Lars-Peter Clausen
     

20 Feb, 2013

5 commits


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

    Guenter Roeck
     

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

    Dan Carpenter
     
  • 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 temperature

    All 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

    Hartmut Knaack