All of lore.kernel.org
 help / color / mirror / Atom feed
From: azarah@gentoo.org (Martin Schlemmer)
To: Greg KH <greg@kroah.com>
Cc: KML <linux-kernel@vger.kernel.org>, sensors@Stimpy.netroedge.com
Subject: [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in sysfs
Date: Thu, 19 May 2005 06:23:52 +0000	[thread overview]
Message-ID: <1049750163.4174.35.camel@nosferatu.lan> (raw)

Skipped content of type multipart/mixed-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030407/0153bb87/attachment.bin

WARNING: multiple messages have this Message-ID (diff)
From: Martin Schlemmer <azarah@gentoo.org>
To: Greg KH <greg@kroah.com>
Cc: KML <linux-kernel@vger.kernel.org>, sensors@Stimpy.netroedge.com
Subject: [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in sysfs
Date: 07 Apr 2003 23:16:03 +0200	[thread overview]
Message-ID: <1049750163.4174.35.camel@nosferatu.lan> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 158 bytes --]

Hi

I did the w83781d sysfs update as per the old spec, which was not
milli-volt.  This patch should fix it.


Regards,

-- 

Martin Schlemmer



[-- Attachment #1.2: w83781d-in_milli-volt.patch --]
[-- Type: text/plain, Size: 678 bytes --]

--- drivers/i2c/chips/w83781d.c.orig	2003-04-07 22:53:37.000000000 +0200
+++ drivers/i2c/chips/w83781d.c	2003-04-07 22:53:34.000000000 +0200
@@ -364,7 +364,7 @@
 	 \
 	w83781d_update_client(client); \
 	 \
-	return sprintf(buf,"%ld\n", (long)IN_FROM_REG(data->reg[nr] * 10)); \
+	return sprintf(buf,"%ld\n", (long)IN_FROM_REG(data->reg[nr])); \
 }
 show_in_reg(in);
 show_in_reg(in_min);
@@ -378,7 +378,7 @@
 	u32 val; \
 	 \
 	val = simple_strtoul(buf, NULL, 10); \
-	data->in_##reg[nr] = (IN_TO_REG(val) / 10); \
+	data->in_##reg[nr] = IN_TO_REG(val); \
 	w83781d_write_value(client, W83781D_REG_IN_##REG(nr), data->in_##reg[nr]); \
 	 \
 	return count; \

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2005-05-19  6:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-07 21:16 Martin Schlemmer [this message]
2005-05-19  6:23 ` [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in sysfs Martin Schlemmer
2003-04-07 21:54 ` Greg KH
2005-05-19  6:23   ` Greg KH
2003-04-08  4:11   ` Martin Schlemmer
2005-05-19  6:23     ` [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in Martin Schlemmer
2003-04-08 22:04     ` [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in sysfs Greg KH
2005-05-19  6:23       ` Greg KH
2003-04-09  6:18       ` Martin Schlemmer
2005-05-19  6:23         ` [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in Martin Schlemmer
2003-04-09  7:41         ` [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in sysfs Greg KH
2005-05-19  6:23           ` Greg KH
2003-04-08 22:11   ` Martin Schlemmer
2005-05-19  6:23     ` [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in Martin Schlemmer

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=1049750163.4174.35.camel@nosferatu.lan \
    --to=azarah@gentoo.org \
    --cc=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.