From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH] emc1403: added emc1423 support
Date: Fri, 10 Dec 2010 10:10:50 +0000 [thread overview]
Message-ID: <20101210101036.12174.79352.stgit@bob.linux.org.uk> (raw)
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
next reply other threads:[~2010-12-10 10:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-10 10:10 Alan Cox [this message]
2010-12-10 12:05 ` [lm-sensors] [PATCH] emc1403: added emc1423 support Jean Delvare
2010-12-10 14:06 ` Alan Cox
2010-12-10 14:49 ` Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101210101036.12174.79352.stgit@bob.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.