UPSTREAM: ite: drivers/adc: it8xxx2: fix adc driver flow
This commit fixes the ADC driver flow. And add internal
reference voltage to ADC driver API. And correct the
data buffer that only need to store raw data.
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
(cherry picked from commit 5f5fb7d7925be3b40b4a963b11fb8b4cfedf03a1)
BUG=b:187206700
TEST=ec shell "adc"
Change-Id: I7830200f00cbc84c00a108992da1cb16266cda07
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/2896413
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Tested-by: Dino Li <Dino.Li@ite.com.tw>
2 files changed