15 Aug, 2010

13 commits

  • Add support for W83667HG-B (very similar to the W83667HG).

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

    Guenter Roeck
     
  • - Moved fan pwm register array pointers into per-instance data.
    - Only read fan pwm data for installed/supported fans.
    - Update fan max output and fan step output information from data in
    registers.
    - Create max_output and step_output attribute files only if respective
    fan pwm registers exist.

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

    Guenter Roeck
     
  • SMSC's EMC2103 family of temperature/fan controllers have 1
    onboard and up to 3 external temperature sensors, and allow
    closed-loop control of one fan. This patch adds support for
    them.

    Signed-off-by: Steve Glendinning
    Signed-off-by: Jean Delvare

    Steve Glendinning
     
  • Fault files are for hardware failures that can be reported. So far
    we've seen chips reporting such failures for temperature sensors and
    fans, but not for voltages. Remove in[0-*]_fault for now. It can be
    added back later if really needed, but I doubt it.

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

    Jean Delvare
     
  • Add currX_alarm, currX_min_alarm, currX_max_alarm and currX_beep
    attributes to the hwmon sysfs API.

    currX_min_alarm and currX_max_alarm are already supported by the LTC4215
    and LTC4245 drivers. currX_alarm is supported by the LTC4261 driver.

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

    Guenter Roeck
     
  • Added _lcrit and _crit to voltage attributes.
    Added _lcrit to temperature attributes.

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

    Guenter Roeck
     
  • * The dev variable is never used.
    * Detect functions only need to set info->type, not client->name.
    * Include the device address in the log message.

    Signed-off-by: Jean Delvare
    Cc: George Joseph
    Cc: Ken Milmore

    Jean Delvare
     
  • Some voltage sensors can be wired internally to the IT87xxF chip's own
    power supply channels. In that case, we can inform user-space that the
    wiring is known by exporting proper labels for these sensors.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • There is a shutdown feature at suspend it can be enabled to
    reduce current consumption and resume it can be switched off.

    Signed-off-by: Shubhrajyoti Datta
    Signed-off-by: Jean Delvare

    Shubhrajyoti Datta
     
  • Add back the power interface we lost due to a slight misunderstanding of
    the maintainers wishes.

    Signed-off-by: Alan Cox
    Signed-off-by: Jean Delvare

    Alan Cox
     
  • Add support for exposing all GPIO pins as analog voltages. Though this is
    not an ideal use of the chip, some hardware engineers may decide that the
    LTC4245 meets their design requirements when studying the datasheet.

    The GPIO pins are sampled in round-robin fashion, meaning that a slow
    reader will see stale data. A userspace application can detect this,
    because it will get -EAGAIN when reading from a sysfs file which contains
    stale data.

    Users can choose to use this feature on a per-chip basis by using either
    platform data or the OF device tree (where applicable).

    Signed-off-by: Ira W. Snyder
    Signed-off-by: Jean Delvare

    Ira W. Snyder
     
  • It's not OK to call platform_device_add_resources() multiple times
    in a row. Despite its name, this functions sets the resources, it
    doesn't add them. So we have to prepare an array with all the
    resources, and then call platform_device_add_resources() once.

    Before this fix, only the last I/O resource would be actually
    registered. The other I/O resources were leaked.

    Signed-off-by: Jean Delvare
    Cc: Jim Cromie
    Cc: stable@kernel.org

    Jean Delvare
     
  • Move the if(err) statement after the if into the if branch indicated by its
    indentation. The preceding if(err) test implies that err cannot be nonzero
    unless the if branch is taken.

    The semantic match that finds this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @r disable braces5@
    position p1,p2;
    statement S1,S2;
    @@

    (
    if (...) { ... }
    |
    if (...) S1@p1 S2@p2
    )

    @script:python@
    p1 << r.p1;
    p2 << r.p2;
    @@

    if (p1[0].column == p2[0].column):
    cocci.print_main("branch",p4)
    cocci.print_secs("after",p5)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Jean Delvare

    Julia Lawall
     

14 Aug, 2010

27 commits