13 Aug, 2017

1 commit


12 Jun, 2017

1 commit


02 Apr, 2017

1 commit

  • 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 Feb, 2016

1 commit


23 Sep, 2014

1 commit


06 Aug, 2014

1 commit

  • Current code uses data_rate as array index in ads1015_read_adc() and uses pga
    as array index in ads1015_reg_to_mv, so we must make sure both data_rate and
    pga settings are in valid value range.
    Return -EINVAL if the setting is out-of-range.

    Signed-off-by: Axel Lin
    Cc: stable@vger.kernel.org
    Signed-off-by: Guenter Roeck

    Axel Lin
     

30 Jul, 2014

1 commit


12 Aug, 2013

1 commit


24 Sep, 2012

1 commit


19 Apr, 2012

1 commit

  • The following build warning is seen in some configurations.

    drivers/hwmon/ads1015.c: In function 'show_in':
    drivers/hwmon/ads1015.c:129: warning: 'in' may be used uninitialized in this function

    Fix by separating the register read function from the code converting the result
    into mV.

    Signed-off-by: Guenter Roeck
    Cc: Dirk Eibach
    Reviewed-by: Robert Coulson

    Guenter Roeck
     

19 Mar, 2012

1 commit

  • This patch converts the drivers in drivers/hwmon/* to use the
    module_i2c_driver() macro which makes the code smaller and a bit simpler.

    Signed-off-by: Axel Lin
    Cc: Corentin Labbe
    Cc: Dirk Eibach
    Cc: "Mark M. Hoffman"
    Cc: Steve Glendinning
    Cc: Riku Voipio
    Cc: Guillaume Ligneul
    Cc: David George
    Cc: "Hans J. Koch"
    Cc: Marc Hulsman
    Cc: Rudolf Marek
    Signed-off-by: Guenter Roeck

    Axel Lin
     

23 Feb, 2012

1 commit

  • An error while creating sysfs attribute files in the driver's probe function
    results in an error abort, but already created files are not removed. This patch
    fixes the problem.

    Signed-off-by: Guenter Roeck
    Cc: stable@vger.kernel.org # 3.0+
    Cc: Dirk Eibach
    Acked-by: Jean Delvare

    Guenter Roeck
     

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
     

22 Mar, 2011

3 commits