From: Jean Delvare <khali@linux-fr.org>
To: Thierry Reding <thierry.reding@avionic-design.de>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>,
lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] hwmon: lm63: Add support for the NatSemi LM96163.
Date: Tue, 8 Nov 2011 10:15:12 +0100 [thread overview]
Message-ID: <20111108101512.7baa9d29@endymion.delvare> (raw)
In-Reply-To: <1320661258-1775-1-git-send-email-thierry.reding@avionic-design.de>
On Mon, 7 Nov 2011 11:20:58 +0100, Thierry Reding wrote:
> 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);
Oh, BTW... there's really no reason to reuse the "lm63" name when both
chips are not fully compatible. Please introduce a new name for the new
chip. It's fairly easy.
I've added detection support to sensors-detect:
http://dl.lm-sensors.org/lm-sensors/files/sensors-detect
I would appreciate if you could try it and report.
I would also appreciate if you could provide a dump of your chip's
registers (using the i2c-dev driver with i2cdump - part of the
i2c-tools package) for my collection.
--
Jean Delvare
prev parent reply other threads:[~2011-11-08 9:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-07 10:20 [PATCH] hwmon: lm63: Add support for the NatSemi LM96163 Thierry Reding
2011-11-07 16:49 ` Guenter Roeck
2011-11-08 7:30 ` Thierry Reding
2011-11-08 8:59 ` Jean Delvare
2011-11-08 9:05 ` Thierry Reding
2011-11-09 17:42 ` Guenter Roeck
2011-11-08 9:15 ` Jean Delvare [this message]
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=20111108101512.7baa9d29@endymion.delvare \
--to=khali@linux-fr.org \
--cc=guenter.roeck@ericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=thierry.reding@avionic-design.de \
/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