15 Aug, 2010

8 commits

  • 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

32 commits