On Sat, Jan 28, 2012 at 01:15:36PM -0500, Jean Delvare wrote: > On Sat, 28 Jan 2012 09:34:34 -0800, Guenter Roeck wrote: > > Maybe the perceived problem is that gain and offset are different and all over the place > > for the various ADCs, so one either needs a whole bunch of functions, or a large > > case statement, or a table with <gain, offset> per adc. I'd choose the latter, > > to simplify runtime code. Also, the description of adc->temperature conversion > > is really quite confusing. > > The die temperature seems to be a simple linear extrapolation, this > should actually be fairly easy to implement. > > The battery temperature is a typical thermistor computation. It is best > done in user-space by a libsensors configuration statement (i.e. the > driver exports a value in mV instead of m°C and sensors.conf takes care > of the conversion.) > > So I don't see anything particularly frightening here. Do you? > Not really; I didn't expect the implementation to be difficult, just understanding the documentation. For the battery temperature, I would prefer to report a temperature if the chip is configured for it (assuming that can be detected). At least so far we can not convert voltages to temperatures via sensors.conf, or can we ? Thanks, Guenter _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors