03 Jan, 2017

1 commit

  • Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for
    read/write attributes. This simplifies the source code, improves
    readbility, and reduces the chance of inconsistencies.

    The conversion was done automatically using coccinelle. It was validated
    by compiling both the old and the new source code and comparing its text,
    data, and bss size.

    Signed-off-by: Julia Lawall
    [groeck: Updated description]
    Signed-off-by: Guenter Roeck

    Julia Lawall
     

29 Aug, 2014

1 commit

  • After the conversion rate is changed, the zbits are not updated,
    but should be, since they are used later in the set_temp function.

    Fixes: a50d9a4d9ad3 ("hwmon: (ds1621) Fix temperature rounding operations")
    Reported-by: Murat Ilsever
    Signed-off-by: Robert Coulson
    Cc: stable@vger.kernel.org
    Signed-off-by: Guenter Roeck

    Robert Coulson
     

30 Jan, 2014

1 commit


19 Oct, 2013

1 commit


14 Oct, 2013

2 commits


28 Jun, 2013

6 commits


22 Jul, 2012

1 commit


19 Mar, 2012

2 commits

  • Fixed:
    ERROR: code indent should use tabs where possible
    ERROR: do not use assignment in if condition
    ERROR: trailing whitespace
    WARNING: labels should not be indented
    WARNING: please, no spaces at the start of a line
    WARNING: simple_strtol is obsolete, use kstrtol instead

    Also modified multi-line comments to follow Documentation/CodingStyle.

    Signed-off-by: Guenter Roeck
    Acked-by: Jean Delvare

    Guenter Roeck
     
  • 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
     

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
     

15 Dec, 2009

3 commits


10 Dec, 2009

1 commit

  • As kind is now hard-coded to -1, there is room for code clean-ups.

    Signed-off-by: Jean Delvare
    Acked-by: Corentin Labbe
    Cc: "Mark M. Hoffman"
    Cc: Juerg Haefliger
    Cc: Riku Voipio
    Acked-by: "Hans J. Koch"
    Cc: Rudolf Marek

    Jean Delvare
     

31 Mar, 2009

3 commits

  • Register access over SMBus isn't cheap, so avoid register access where
    possible:
    * Only write back the configuration register if it changed.
    * Don't refresh the register cache when we don't have to.

    Signed-off-by: Jean Delvare
    Cc: Aurelien Jarno

    Jean Delvare
     
  • Fix a few oddities in how the ds1621 driver accesses the registers:
    * We don't need a wrapper to access the configuration register.
    * Check for error before calling swab16. Error checking isn't
    complete yet, but that's a start.
    * Device-specific read functions should never be called during
    detection, as by definition we don't know what device we are talking
    to at that point.
    * Likewise, don't assume that register reads succeed during detection.

    Signed-off-by: Jean Delvare
    Cc: Aurelien Jarno

    Jean Delvare
     
  • Reorder the ds1621 driver code so that we can get rid of forward
    function declarations.

    Signed-off-by: Jean Delvare
    Cc: Aurelien Jarno

    Jean Delvare
     

17 Jul, 2008

1 commit


19 Feb, 2008

1 commit


08 Feb, 2008

1 commit

  • Many I2C hwmon drivers define a driver ID but no other code references
    these, meaning that they are useless. Discard them, along with a few
    IDs which are defined but never used at all.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     

10 Oct, 2007

2 commits


20 Jul, 2007

3 commits


28 May, 2007

1 commit


29 Sep, 2006

1 commit


24 Mar, 2006

1 commit

  • convert drivers/hwmon/*.c semaphore use to mutexes.

    the conversion was generated via scripts, and the result was validated
    automatically via a script as well.

    all affected hwmon drivers were build-tested.

    Signed-off-by: Ingo Molnar
    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Ingo Molnar
     

06 Jan, 2006

3 commits


29 Oct, 2005

3 commits