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
     

04 Sep, 2019

1 commit

  • ltc2990 will now use device_property_read_u32_array() instead of
    of_property_read_u32_array() - allowing the use of software nodes
    via fwnode_create_software_node().

    This allows code using i2c_new_device() to specify a default
    measurement mode for the LTC2990 via fwnode_create_software_node().

    Signed-off-by: Max Staudt
    Reviewed-by: Geert Uytterhoeven
    Link: https://lore.kernel.org/r/20190819121618.16557-2-max@enpas.org
    Signed-off-by: Guenter Roeck

    Max Staudt
     

05 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    license gplv2

    and 1 additional normalized pattern(s):

    this program is free software you can redistribute it and or modify it
    under the terms and conditions of the gnu general public license version
    2 as published by the free software foundation this program is
    distributed in the hope 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

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Richard Fontana
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Reviewed-by: Steve Winslow
    Reviewed-by: Alexios Zavras
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190529141332.723143934@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

19 Feb, 2019

1 commit

  • Use SENSOR[_DEVICE]_ATTR[_2]_{RO,RW,WO} to simplify the source code,
    to improve readability, 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
     

21 May, 2018

2 commits

  • Updated version of the ltc2990 driver which supports all measurement
    modes (current, voltage, temperature) available in the chip.

    If devicetree is used, the mode must be specified with the property
    "lltc,meas-mode". The format and possible values of the property are
    described in the binding.

    If devicetree is not used, the mode of the chip will not be configured.
    Unless the chip is configured by another source, only the internal
    temperature and supply voltage will be measured.

    Signed-off-by: Tom Levens
    Tested-By: mike.looijmans@topic.nl
    [groeck: Fixed compiler warning]
    Signed-off-by: Guenter Roeck

    Tom Levens
     
  • Fix incorrect conversion of negative temperatures by using
    sign_extend32() instead of a home-grown conversion function.

    Fixes: df922703574e ("hwmon: Add LTC2990 sensor driver")
    Signed-off-by: Tom Levens
    [groeck: Updated subject and description]
    Signed-off-by: Guenter Roeck

    Tom Levens
     

05 Mar, 2016

1 commit

  • This adds support for the Linear Technology LTC2990 I2C System Monitor.
    The LTC2990 supports a combination of voltage, current and temperature
    monitoring. This driver currently only supports reading two currents
    by measuring two differential voltages across series resistors, in
    addition to the Vcc supply voltage and internal temperature.

    This is sufficient to support the Topic Miami SOM which uses this chip
    to monitor the currents flowing into the FPGA and the CPU parts.

    Signed-off-by: Mike Looijmans
    Signed-off-by: Guenter Roeck

    Mike Looijmans