hwmon: epm_adc: Scale single measurement result
EPM driver can scale the result returned to the user
instead of returning raw ADC code that is obtained
through the PSOC.
The range of the code is from 0-0x7fff with the
corresponding voltage range from 0 to 2.048V. The
voltage units are in mV. The current is computed
using the corresponding channel's rsense value
with the units in mA.
Change-Id: I6fc4b264fa170e412800f4ef77b4c3dacb90186c
Signed-off-by:
Siddartha Mohanadoss <smohanad@codeaurora.org>
Loading
Please register or sign in to comment