All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH] emc1403: added emc1423 support
@ 2010-12-10 10:10 Alan Cox
  2010-12-10 12:05 ` Jean Delvare
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alan Cox @ 2010-12-10 10:10 UTC (permalink / raw)
  To: lm-sensors

From: Jekyll Lai <jekyll_lai@wistron.com>

emc1423 uses the similar register and adds a hardware shutdown pin to
protect exceed temperature. This function is set by resistor; it's not
necessary to do anything in the driver except add the emc1423 pid of 0x23.

Signed-off-by: Jekyll Lai <jekyll_lai@wistron.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
---

 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 8dee3f3..9141e22 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);


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-10 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-10 10:10 [lm-sensors] [PATCH] emc1403: added emc1423 support Alan Cox
2010-12-10 12:05 ` Jean Delvare
2010-12-10 14:06 ` Alan Cox
2010-12-10 14:49 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.