All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in sysfs
@ 2005-05-19  6:23 ` Martin Schlemmer
  0 siblings, 0 replies; 14+ messages in thread
From: Martin Schlemmer @ 2003-04-07 21:16 UTC (permalink / raw)
  To: Greg KH; +Cc: KML, sensors


[-- 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 --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-05-19  6:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-07 21:16 [PATCH-2.5] Fix w83781d sensor to use Milli-Volt for in_* in sysfs Martin Schlemmer
2005-05-19  6:23 ` 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

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.