commit | f6adab796cfd509c4c5beb9f0458e0d9fd8da6a6 | [log] [tgz] |
---|---|---|
author | Yan He <yanhe@codeaurora.org> | Fri Aug 31 11:09:36 2012 -0700 |
committer | Yan He <yanhe@codeaurora.org> | Fri Aug 31 12:43:11 2012 -0700 |
tree | b4e96656919a52eec4088ad37ed22039119bd5a4 | |
parent | d01163e16f92cda4f9bba3b155a0fdf057d2a60b [diff] |
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: Yan He <yanhe@codeaurora.org>