public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Chapman <jchapman@katalix.com>
To: sensors@stimpy.netroedge.com
Cc: linux-kernel@vger.kernel.org, khali@linux-fr.org
Subject: [PATCH: 2.6.11-rc5] i2c chips: add adt7461 support to lm90 driver
Date: Mon, 28 Feb 2005 17:13:35 +0000	[thread overview]
Message-ID: <4223513F.4030403@katalix.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 115 bytes --]

Add ADT7461 (temperature sensor) support to LM90 driver.

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






[-- Attachment #2: lm90.patch --]
[-- Type: text/plain, Size: 847 bytes --]

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 */






             reply	other threads:[~2005-02-28 17:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-28 17:13 James Chapman [this message]
2005-03-02 16:55 ` [PATCH: 2.6.11-rc5] i2c chips: add adt7461 support to lm90 driver Greg KH
2005-03-02 19:37   ` Jean Delvare
2005-03-03 17:28     ` James Chapman
2005-03-03 21:32       ` 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=4223513F.4030403@katalix.com \
    --to=jchapman@katalix.com \
    --cc=khali@linux-fr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sensors@stimpy.netroedge.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox