[PATCH: 2.6.11-rc5] i2c chips: add adt7461 support to lm90 driver

From: James Chapman (jchapman_at_katalix.com)
Date: 02/28/05

  • Next message: Jesse Barnes: "Re: [PATCH 10/10] IA64: C99 initializers for hw_interrupt_type structures"
    Date:	Mon, 28 Feb 2005 17:13:35 +0000
    To: sensors@stimpy.netroedge.com
    
    
    

    Add ADT7461 (temperature sensor) support to LM90 driver.

    Signed-off-by: James Chapman <jchapman@katalix.com>

    
    

    diff -Nru a/drivers/i2c/chips/lm90.c b/drivers/i2c/chips/lm90.c
    --- a/drivers/i2c/chips/lm90.c 2005-02-27 13:24:11 +00:00
    +++ b/drivers/i2c/chips/lm90.c 2005-02-27 13:24:11 +00:00
    @@ -85,7 +85,7 @@
      * Insmod parameters
      */
     
    -SENSORS_INSMOD_5(lm90, adm1032, lm99, lm86, max6657);
    +SENSORS_INSMOD_6(lm90, adm1032, lm99, lm86, max6657, adt7461);
     
     /*
      * The LM90 registers
    @@ -386,7 +386,10 @@
                              && (reg_config1 & 0x3F) == 0x00
                              && reg_convrate <= 0x0A) {
                                     kind = adm1032;
    - }
    + } else
    + if (address == 0x4c
    + && chip_id == 0x51) /* ADT7461 */
    + kind = adt7461;
                     } else
                     if (man_id == 0x4D) { /* Maxim */
                             /*
    @@ -423,6 +426,8 @@
                     name = "lm86";
             } else if (kind == max6657) {
                     name = "max6657";
    + } else if (kind == adt7461) {
    + name = "adt7461";
             }
     
             /* We can fill in the remaining client fields */

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Jesse Barnes: "Re: [PATCH 10/10] IA64: C99 initializers for hw_interrupt_type structures"

    Relevant Pages

    • Re: [PATCH] I2C update for 2.6.9
      ... I just noticed the other day that the lm90 driver uses an u16 to store ... the value of the 8-bit alarms register. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] I2C update for 2.6.10-rc1
      ... /* Insmod parameters */ ... static unsigned int extra_isa; ... filled in by the module writer. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] I2C update for 2.6.10-rc1
      ... /* Insmod parameters */ ... Note that we can't determine the ISA address until we have initialized ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)