On Wed, Feb 16, 2011 at 12:59:52PM -0500, J, KEERTHY wrote: > Hello Guenter, > > On Wed, Feb 16, 2011 at 9:39 PM, Guenter Roeck > <guenter.roeck@xxxxxxxxxxxx> wrote: > > On Wed, Feb 16, 2011 at 07:56:57AM -0500, Keerthy wrote: > >> This driver exposes the sysfs nodes of the TWL4030 MADC module. > >> All the channel values are expressed in terms of mV. Channel 13 > >> and channel 14 are reserved. There are channels which represent > >> temperature and current. Even they output raw voltage in mV. > >> > > Why ? > > The conversion to current and temperature in case of MADC depends > on a register in the battery module. Hence battery driver can expose the > converted value. So providing the raw voltage here. Not a good reason. You could create an API to let you retrieve the register values. You could read the respective registers directly. You could provide the register values in platform data. If there will always be just one instance of the driver, you could provide the register values via module parameters. You could present the raw temperature/current values and correct it with sensors3.conf. Either case, I don't think it is a good idea to present known temperatures or currents as voltage. Guenter _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors