>From 477d1826271fae5e41ea6c9a2bc2a3b5185d049a Mon Sep 17 00:00:00 2001 From: Jekyll Lai <[email protected]> Date: Fri, 10 Dec 2010 13:23:47 +0800 Subject: [PATCH] emc1403: added emc1423 support emc1423 uses the similar register and adds a hardware shutdown pin to protect exceed temperature. This function is set by resister; it's not necessary to do anything in the driver. And emc1423's pid is 0x23.
Signed-off-by: Jekyll Lai <[email protected]> --- drivers/hwmon/emc1403.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index 5b58b20..4983459 100644 --- a/drivers/hwmon/emc1403.c +++ b/drivers/hwmon/emc1403.c @@ -278,7 +278,7 @@ static int emc1403_detect(struct i2c_client *client, /* Note: 0x25 is the 1404 which is very similar and this driver could be extended */ id = i2c_smbus_read_byte_data(client, THERMAL_PID_REG); - if (id != 0x21) + if (id != 0x21 && id != 0x23) /* 0x21:emc1403 0x23:emc1423*/ return -ENODEV; id = i2c_smbus_read_byte_data(client, THERMAL_REVISION_REG); -- 1.7.0.4 _______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
