24 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 either version 2 of the license or at
    your option any later version 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
    675 mass ave cambridge ma 02139 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

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

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Michael Ellerman (powerpc)
    Reviewed-by: Richard Fontana
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190520071858.739733335@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

18 Apr, 2019

1 commit


16 Apr, 2019

1 commit

  • If CONFIG_OF is not enabled, the following build warning is observed.

    drivers/hwmon/ads7828.c:203:34: warning:
    ‘ads7828_of_match’ defined but not used

    Mark ads7828_of_match as __maybe_unused to fix the problem.

    Signed-off-by: Guenter Roeck

    Guenter Roeck
     

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
     

02 Apr, 2017

2 commits

  • Adding the ability for the ads7828 and ads7830 to use device tree to
    get optional parameters instead of using platform devices. This allows
    people using custom boards to also use the ads7828 in a non-default manner.

    Signed-off-by: Sam Povilus
    [groeck: Fixed whitespace errors in ads7828.txt]
    Signed-off-by: Guenter Roeck

    Sam Povilus
     
  • The driver doesn't have a struct of_device_id table but supported devices
    are registered via Device Trees. This is working on the assumption that a
    I2C device registered via OF will always match a legacy I2C device ID and
    that the MODALIAS reported will always be of the form i2c:.

    But this could change in the future so the correct approach is to have an
    OF device ID table if the devices are registered via OF.

    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Guenter Roeck

    Javier Martinez Canillas
     

19 Apr, 2016

1 commit

  • On ads7828 the internal reference defaults to off upon power up. When
    using internal reference, it needs to be turned on and the voltage needs
    to settle before normal conversion cycle can be started. Hence perform a
    dummy read in the probe to enable the internal reference allowing the
    voltage to settle before performing a normal read.

    Without this fix, the first read from the ADC when using internal
    reference always returns incorrect data.

    Signed-off-by: Akshay Bhat
    Cc: stable@vger.kernel.org # v4.1+
    Signed-off-by: Guenter Roeck

    Akshay Bhat
     

23 Feb, 2015

1 commit


03 Feb, 2015

2 commits


04 Aug, 2014

1 commit


12 Aug, 2013

1 commit


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
     

06 Dec, 2012

2 commits

  • The ADS7830 device is almost the same as the ADS7828,
    except that it does 8-bit sampling, instead of 12-bit.
    This patch extends the ads7828 driver to support this chip.

    Signed-off-by: Guillaume Roguez
    Signed-off-by: Vivien Didelot
    Signed-off-by: Guenter Roeck

    Guillaume Roguez
     
  • As there is no reliable way to identify the chip, it is preferable to
    remove the detect callback, to avoid misdetection.

    Module parameters are not worth it here, so let's get rid of them and
    add an ads7828_platform_data structure instead.

    Clean the code by removing unused macros, fixing coding style issues,
    avoiding function prototypes and using convenient macros such as
    module_i2c_driver().

    Signed-off-by: Vivien Didelot
    Signed-off-by: Guenter Roeck

    Vivien Didelot
     

24 Sep, 2012

1 commit


19 Mar, 2012

1 commit


13 Jan, 2012

1 commit


04 Nov, 2011

1 commit

  • Make use of the new i2c_smbus_{read,write}_word_swapped functions.
    This makes the driver code more compact and readable. It also ensures
    proper error handling.

    Signed-off-by: Jean Delvare
    Acked-by: Jonathan Cameron
    Acked-by: Guenter Roeck
    Cc: Dirk Eibach
    Cc: "Mark M. Hoffman"
    Cc: Guillaume Ligneul

    Jean Delvare