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

Skip to content
Commit d659426e authored by Yan He's avatar Yan He Committed by Stephen Boyd
Browse files

hwmon: epm_adc: Update the physical result



The scaling function multiplies the ADC code with
a high scale factor to avoid rouding accuracy errors.
This results in a 32 bit integer not being sufficient
to store the result. Therefore use a 64 bit integer
type to process the result.

Change-Id: Iee5ec105d66012efef9e9674de2e8aa0c886d31f
Signed-off-by: default avatarYan He <yanhe@codeaurora.org>
parent 7231243f
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