Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7efed8e6 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss Committed by Stephen Boyd
Browse files

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: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent d4afc550
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment