Re: lm sensors sysfs file structure

From: Greg KH (greg@kroah.com)
Date: Thu Mar 27 2003 - 13:13:08 EST


On Thu, Mar 27, 2003 at 07:06:08PM +0100, Jan Dittmer wrote:
> Greg KH wrote:
> >>If we're restructuring it, I think we should also agree on _one_ common
> >>denominator for all values ie. mVolt and milli-Degree Celsius, so that
> >>no userspace program ever again has know how to convert them to
> >>user-readable values and every user can just cat the values and doesn't
> >>have to wonder if it's centi-Volt, milli-Volt, centi-Degree, dezi-Degree
> >>or whatever.
> >
> >Um, that's what my proposal stated. Do you not agree with it? (You're
> >quoting the existing document above, not my proposed changes.)
>
> I just wanted to emphasis that _all_ units should be milli oder centi.
> Not mixing centiDegrees and milliVolts or one driver using milliVolt and
> another centiVolt.

I agree.

> From your description it could well be, that one driver uses centi's
> and another milli's, both for voltage or one driver uses milliVolt but
> centi-degree.

Huh? I said:

temp_max[1-3] Temperature max value.
                Fixed point value in form XXXXX and should be divided by
                100 to get degrees Celsius.
                Read/Write value.

Where is the ability to use a different scale from different drivers in
that?

Anyway, it sounds like we are agreeing here, so I guess I'll go and
write up the whole document in the new style and post it for comments.

thanks,

greg k-h
-
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 : Mon Mar 31 2003 - 22:00:28 EST