--=_courier-2273-1049750408-0001-2
Content-Type: multipart/mixed; boundary="=-amCC7BocVSBTjgquXDUA"
--=-amCC7BocVSBTjgquXDUA
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi
I did the w83781d sysfs update as per the old spec, which was not
milli-volt. This patch should fix it.
Regards,
--=20
Martin Schlemmer
--=-amCC7BocVSBTjgquXDUA
Content-Disposition: attachment; filename=w83781d-in_milli-volt.patch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=w83781d-in_milli-volt.patch; charset=ISO-8859-1
--- 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 =3D simple_strtoul(buf, NULL, 10); \
- data->in_##reg[nr] =3D (IN_TO_REG(val) / 10); \
+ data->in_##reg[nr] =3D IN_TO_REG(val); \
w83781d_write_value(client, W83781D_REG_IN_##REG(nr), data->in_##reg[nr])=
; \
\
return count; \
--=-amCC7BocVSBTjgquXDUA--
--=_courier-2273-1049750408-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA+keqTqburzKaJYLYRAi0SAJ4t9KkzDgJJUmAWXwhZGbYwAKJ7nACeLVt2
wK7rWrSset8qmmICyj4vwcc=
=20ff
-----END PGP SIGNATURE-----
--=_courier-2273-1049750408-0001-2--