06 Jan, 2012

2 commits


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
     

25 Oct, 2011

2 commits


22 Mar, 2011

2 commits

  • Make the LM75/LM75A device detection faster:

    * Don't read the current temperature value when we don't use it.
    * Check for unused bits in the configuration register as soon as we
    have read its value.
    * Don't use word reads, not all devices support this, and some which
    don't misbehave when you try.
    * Check for cycling register values every 40 register addresses
    instead of every 8, it's 5 times faster and just as efficient.

    Some of these improvements come straight from the user-space
    sensors-detect script, so both detection routines are in line now.

    Signed-off-by: Jean Delvare
    Cc: Len Sorensen
    Acked-by: Guenter Roeck

    Jean Delvare
     
  • Add support for detection of the National Semiconductor LM75A using the ID
    register value.

    Signed-off-by: Len Sorensen
    Signed-off-by: Jean Delvare

    Len Sorensen
     

29 Oct, 2010

2 commits


15 Aug, 2010

1 commit


03 Jun, 2010

1 commit

  • I2C drivers can use the clientdata-pointer to point to private data. As I2C
    devices are not really unregistered, but merely detached from their driver, it
    used to be the drivers obligation to clear this pointer during remove() or a
    failed probe(). As a couple of drivers forgot to do this, it was agreed that it
    was cleaner if the i2c-core does this clearance when appropriate, as there is
    no guarantee for the lifetime of the clientdata-pointer after remove() anyhow.
    This feature was added to the core with commit
    e4a7b9b04de15f6b63da5ccdd373ffa3057a3681 to fix the faulty drivers.

    As there is no need anymore to clear the clientdata-pointer, remove all current
    occurrences in the drivers to simplify the code and prevent confusion.

    Signed-off-by: Wolfram Sang
    Acked-by: Mark Brown
    Acked-by: Greg Kroah-Hartman
    Acked-by: Richard Purdie
    Acked-by: Dmitry Torokhov
    Signed-off-by: Jean Delvare

    Wolfram Sang
     

28 May, 2010

1 commit


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
     

07 Jan, 2009

1 commit


11 Aug, 2008

1 commit


01 Aug, 2008

2 commits

  • More LM75 updates:

    - Teach the LM75 driver to use new-style driver binding:

    * Create a second driver struct, using new-style driver binding
    methods cribbed from the legacy code.

    * Add a MODULE_DEVICE_TABLE (for "newER-style binding")

    * The legacy probe logic delegates its work to this new code.

    * The legacy driver now uses the name "lm75_legacy".

    - More careful initialization. Chips are put into 9-bit mode so
    the current interconversion routines will never fail.

    - Save the original chip configuration, and restore it on exit.
    (Among other things, this normally turns off the mode where
    the chip is constantly sampling ... and thus saves power.)

    So the new-style code should catch all chips that boards declare,
    while the legacy code catches others. This particular coexistence
    strategy may need some work yet ... legacy modes might best be set
    up explicitly by some tool not unlike "sensors-detect". (Or else
    completely eradicated...)

    Signed-off-by: David Brownell
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    David Brownell
     
  • Minor cleanup and reorg of the lm75 code.

    - Kconfig provides a larger list of lm75-compatible chips

    - A top comment now says what the driver does (!) ... as in, just
    what sort of sensor is this??

    - Section comments now delineate the various sections of the driver:
    hwmon attributes, driver binding, register access, module glue.
    One driver binding function moved out of the attribute section,
    as did the driver struct itself.

    - Minor tweaks to legacy probe logic: correct a comment, and
    remove a pointless variable.

    - Whitespace, linelength, and comment fixes.

    This patch should include no functional changes. It's preparation
    for adding new-style (driver model) I2C driver binding.

    Signed-off-by: David Brownell
    Acked-by: Jean Delvare
    Acked-by: Laurent Pinchart
    Signed-off-by: Mark M. Hoffman

    David Brownell
     

19 Jun, 2008

1 commit

  • LM75 sensor reading bugfix: never save error status as valid
    sensor output. This could be improved, but at least this
    prevents certain rude failure modes.

    Signed-off-by: David Brownell
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    David Brownell
     

27 Apr, 2008

1 commit

  • High-byte first is not opposite to the usual practice - that's what
    almost all hardware monitoring drivers do. It is opposite to the SMBus
    standard though.

    Also delete a duplicate comment.

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

    Jean Delvare
     

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


08 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

1 commit


06 Sep, 2005

6 commits


12 Jul, 2005

1 commit

  • Part 2: Move the driver files themselves.

    Note that the patch "adds trailing whitespace", because it does move the
    files as-is, and some files happen to have trailing whitespace.

    From: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare