On Mon, 2003-04-07 at 23:54, Greg KH wrote:
> Hm, this patch looks backwards, is it?
>
> Also, just as a side note, can you make your patches so that they can be
> applied with "patch -p1" instead of "patch -p0" which your current ones
> are? My tools treat -p1 patches much better :)
>
Ok, here is the proper one. To recap:
I did the w83781d sysfs update as per the old spec, which was not
milli-volt. This patch should fix it.
Regards,
--Martin Schlemmer
--- 1/drivers/i2c/chips/w83781d.c 2003-04-07 22:53:37.000000000 +0200 +++ 2/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])); \ + return sprintf(buf,"%ld\n", (long)IN_FROM_REG(data->reg[nr] * 10)); \ } 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); \ + data->in_##reg[nr] = (IN_TO_REG(val) / 10); \ w83781d_write_value(client, W83781D_REG_IN_##REG(nr), data->in_##reg[nr]); \ \ return count; \
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:16 EST