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
     

05 Jun, 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

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 315 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Armijn Hemel
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190531190115.503150771@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

17 Dec, 2018

1 commit


04 Mar, 2014

1 commit


08 Apr, 2013

1 commit


10 Oct, 2012

1 commit


24 Sep, 2012

1 commit


19 Mar, 2012

2 commits


14 Dec, 2010

1 commit

  • The ltc4215 driver used the chip's "power good" status bit to provide
    the power1_alarm file. This is wrong: the chip is really reporting the
    status of one of the monitored voltages.

    Change the sysfs file from power1_alarm to in2_min_alarm instead. This
    matches the voltage that the chip is raising an alarm for.

    Signed-off-by: Ira W. Snyder
    Signed-off-by: Guenter Roeck

    Ira W. Snyder
     

05 Oct, 2009

1 commit

  • There is no point in implementing a detect callback for the LTC4215
    and LTC4245, as these devices can't be detected. It was there solely
    to handle "force" module parameters to instantiate devices, but now
    we have a better sysfs interface that can do the same.

    So we can get rid of the ugly module parameters and the detect
    callbacks. This shrinks the binary module sizes by 36% and 46%,
    respectively.

    Signed-off-by: Jean Delvare
    Cc: Ira W. Snyder

    Jean Delvare
     

24 Sep, 2009

1 commit

  • When power is applied to the ltc4215 chip it sometimes reports spurious
    faults. The faults are not yet exposed via sysfs, however it may be useful
    for userspace to read the fault register directly with the i2cget command.
    Clear the fault register when the driver is installed so userspace doesn't
    have to worry about spurious fault indications.

    Signed-off-by: Ira W. Snyder
    Signed-off-by: Jean Delvare

    Ira W. Snyder
     

01 Apr, 2009

1 commit

  • Add Linux support for the Linear Technology LTC4215 Hot Swap controller
    I2C monitoring interface.

    I have tested the driver with my board, and it appears to work fine. With
    the power supplies disabled, it reads 11.93V input, 1.93V output, no
    current and no power. With the supplies enabled, it reads 11.93V input,
    11.98V output, no current, no power. I'm not drawing any current at the
    moment, so this is reasonable. The value in the sense register never
    reads anything except 0, so I expect to get zero from the current and
    power calculations.

    I didn't attempt to support changing any of the chip's settings or
    enabling the FET. I'm not sure even how to do that and still fit within
    the hwmon framework. :)

    Signed-off-by: Ira W. Snyder
    Cc: Jean Delvare
    Cc: "Mark M. Hoffman"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ira Snyder