lkml.org 
[lkml]   [2011]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] hwmon: lm63: Add support for the NatSemi LM96163.
    Date
    Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
    ---
    drivers/hwmon/lm63.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c
    index 508cb29..94e373c 100644
    --- a/drivers/hwmon/lm63.c
    +++ b/drivers/hwmon/lm63.c
    @@ -483,7 +483,7 @@ static int lm63_detect(struct i2c_client *new_client,
    return -ENODEV;
    }

    - if (chip_id == 0x41 && address == 0x4c)
    + if ((chip_id == 0x41 || chip_id == 0x49) && address == 0x4c)
    strlcpy(info->type, "lm63", I2C_NAME_SIZE);
    else if (chip_id == 0x51 && (address == 0x18 || address == 0x4e))
    strlcpy(info->type, "lm64", I2C_NAME_SIZE);
    --
    1.7.7.2


    \
     
     \ /
      Last update: 2011-11-07 11:23    [W:0.039 / U:1.788 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site