Voltage scale, milli or micro?
Hi,
So according to our documentation the voltage channel scale is in microvolts, but for some odd reason almost all drivers report the scale in millivolts. In the IIO hwmon bridge we also have this comment "Assumes that IIO and hwmon operate in the same base units. This is supposed to be true, but needs verification for new channel types." and hwmon also uses millivolts. So I'm wondering should we fix all our drivers to match the specification or should we update the specification to match reality. I would prefer the later.
- Lars
Jonathan Cameron
maintainerQuoted 11 lines · Lars-Peter Clausen
Hi,
So according to our documentation the voltage channel scale is in microvolts, but for some odd reason almost all drivers report the scale in millivolts. In the IIO hwmon bridge we also have this comment "Assumes that IIO and hwmon operate in the same base units. This is supposed to be true, but needs verification for new channel types." and hwmon also uses millivolts. So I'm wondering should we fix all our drivers to match the specification or should we update the specification to match reality. I would prefer the later.
Definitely go with updating the spec given nothing conforms to it anyway. Guess we'll have to check that though.
Jonathan
Quoted 2 lines
- Lars