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

    Stephen Kitt
     

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

    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 usa

    extracted 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

    Thomas Gleixner
     

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

    Guenter Roeck
     

09 Jul, 2018

1 commit


04 Aug, 2014

1 commit


22 May, 2014

9 commits


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

    Josef Gajdusek
     
  • 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

    Jean Delvare
     
  • 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

    Josef Gajdusek
     

19 Oct, 2013

2 commits


10 Oct, 2012

1 commit


24 Sep, 2012

1 commit


19 Mar, 2012

2 commits


06 Jan, 2012

1 commit


10 Feb, 2011

1 commit


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

    Jekyll Lai
     

17 Sep, 2010

1 commit


15 Aug, 2010

1 commit


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

    Kalhan Trisal