Re: [PATCH v2] hwmon/mc13xxx-adc: add support for the MC13892 PMIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux