summaryrefslogtreecommitdiff
path: root/include/touchpad.h
diff options
context:
space:
mode:
authorReka Norman <rekanorman@google.com>2023-05-04 11:11:19 +1000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-04 08:08:58 +0000
commit1bde3ee34417c5e06451db18f4a2d3d541fa4376 (patch)
tree4939a1a16a68d268b9e2225424e0322d18c82e99 /include/touchpad.h
parent3ae782467a7f86415fcf1d4bdfd3414027900be3 (diff)
downloadchrome-ec-1bde3ee34417c5e06451db18f4a2d3d541fa4376.tar.gz
it83xx/adc: Use 64-bit int for voltage calculation
For some voltage dividers, factor_mul is large enough that the intermediate value can overflow, so use a 64-bit int. BRANCH=None BUG=b:271941405 TEST=VBUS ADC calculation doesn't overflow on dibbi Change-Id: I993e62e7c0ae31c70f962303e7a618841f2bc772 Signed-off-by: Reka Norman <rekanorman@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4506010 Commit-Queue: Reka Norman <rekanorman@chromium.org> Tested-by: Reka Norman <rekanorman@chromium.org> Reviewed-by: Sam McNally <sammc@chromium.org>
Diffstat (limited to 'include/touchpad.h')
0 files changed, 0 insertions, 0 deletions