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? -- Jean Delvare _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors