From: greg@kroah.com (Greg KH)
To: linux-kernel@vger.kernel.org, sensors@stimpy.netroedge.com
Subject: [PATCH] I2C update for 2.6.5
Date: Thu, 19 May 2005 06:24:53 +0000 [thread overview]
Message-ID: <10819814543859@kroah.com> (raw)
In-Reply-To: <1081981453937@kroah.com>
In-Reply-To: <10819814492866@kroah.com>
ChangeSet 1.1643.36.30, 2004/04/14 13:10:38-07:00, khali@linux-fr.org
[PATCH] I2C: Fix voltage rounding in asb100
This one line patch fixes voltage rounding in the asb100 chip driver.
It's very similar to a patch I submitted for the lm80 a few days ago.
drivers/i2c/chips/asb100.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/i2c/chips/asb100.c b/drivers/i2c/chips/asb100.c
--- a/drivers/i2c/chips/asb100.c Wed Apr 14 15:12:13 2004
+++ b/drivers/i2c/chips/asb100.c Wed Apr 14 15:12:13 2004
@@ -124,7 +124,7 @@
static u8 IN_TO_REG(unsigned val)
{
unsigned nval = SENSORS_LIMIT(val, ASB100_IN_MIN, ASB100_IN_MAX);
- return nval / 16;
+ return (nval + 8) / 16;
}
static unsigned IN_FROM_REG(u8 reg)
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org, sensors@stimpy.netroedge.com
Subject: Re: [PATCH] I2C update for 2.6.5
Date: Wed, 14 Apr 2004 15:24:14 -0700 [thread overview]
Message-ID: <10819814543859@kroah.com> (raw)
In-Reply-To: <1081981453937@kroah.com>
ChangeSet 1.1643.36.30, 2004/04/14 13:10:38-07:00, khali@linux-fr.org
[PATCH] I2C: Fix voltage rounding in asb100
This one line patch fixes voltage rounding in the asb100 chip driver.
It's very similar to a patch I submitted for the lm80 a few days ago.
drivers/i2c/chips/asb100.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/i2c/chips/asb100.c b/drivers/i2c/chips/asb100.c
--- a/drivers/i2c/chips/asb100.c Wed Apr 14 15:12:13 2004
+++ b/drivers/i2c/chips/asb100.c Wed Apr 14 15:12:13 2004
@@ -124,7 +124,7 @@
static u8 IN_TO_REG(unsigned val)
{
unsigned nval = SENSORS_LIMIT(val, ASB100_IN_MIN, ASB100_IN_MAX);
- return nval / 16;
+ return (nval + 8) / 16;
}
static unsigned IN_FROM_REG(u8 reg)
next prev parent reply other threads:[~2005-05-19 6:24 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-14 22:22 [BK PATCH] I2C update for 2.6.5 Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` [PATCH] " Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH
2005-05-19 6:24 ` Greg KH
2004-04-14 22:24 ` Greg KH [this message]
2005-05-19 6:24 ` Greg KH
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=10819814543859@kroah.com \
--to=greg@kroah.com \
--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 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.